Fix #1491. Bug where drawings couldn't have a slash in their names.

This commit is contained in:
Dion Moult
2021-05-28 17:26:00 +10:00
parent acc9bd736f
commit 7fe2e93dea
2 changed files with 6 additions and 4 deletions
@@ -1059,7 +1059,7 @@ class RefreshDrawingList(bpy.types.Operator):
continue
if "IfcAnnotation/" in obj.name:
new = bpy.context.scene.DocProperties.drawings.add()
new.name = obj.name.split("/")[1]
new.name = "/".join(obj.name.split("/")[1:])
new.camera = obj
return {"FINISHED"}