mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
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:
@@ -747,10 +747,10 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
|
|
||||||
for drawing in sorted(drawings, key=lambda x: x.Name or "Unnamed"):
|
for drawing in sorted(drawings, key=lambda x: x.Name or "Unnamed"):
|
||||||
new = props.drawings.add()
|
new = props.drawings.add()
|
||||||
new.ifc_definition_id = drawing.id()
|
|
||||||
new.name = drawing.Name or "Unnamed"
|
new.name = drawing.Name or "Unnamed"
|
||||||
new.is_selected = current_drawings_selection.get(drawing.id(), True)
|
new.is_selected = current_drawings_selection.get(drawing.id(), True)
|
||||||
new.is_drawing = True
|
new.is_drawing = True
|
||||||
|
new.ifc_definition_id = drawing.id() # Last, to prevent unnecessary prop callbacks
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def import_documents(cls, document_type):
|
def import_documents(cls, document_type):
|
||||||
|
|||||||
Reference in New Issue
Block a user