Fix issue where reloading the drawing list would cause drawing names to be synced

It would run useless sync / API calls to edit psets on potentially hundreds of drawings.
This commit is contained in:
Dion Moult
2024-04-10 11:07:17 +10:00
parent f0fce05342
commit 782573f986
+1 -1
View File
@@ -747,10 +747,10 @@ class Drawing(blenderbim.core.tool.Drawing):
for drawing in sorted(drawings, key=lambda x: x.Name or "Unnamed"):
new = props.drawings.add()
new.ifc_definition_id = drawing.id()
new.name = drawing.Name or "Unnamed"
new.is_selected = current_drawings_selection.get(drawing.id(), True)
new.is_drawing = True
new.ifc_definition_id = drawing.id() # Last, to prevent unnecessary prop callbacks
@classmethod
def import_documents(cls, document_type):