mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Optimistically track all object edits whenever you toggle edit mode, not just meshes.
This commit is contained in:
@@ -50,9 +50,7 @@ def mode_callback(obj, data):
|
|||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
if obj.data.BIMMeshProperties.ifc_definition_id:
|
if obj.data.BIMMeshProperties.ifc_definition_id:
|
||||||
representation = IfcStore.get_file().by_id(obj.data.BIMMeshProperties.ifc_definition_id)
|
IfcStore.edited_objs.add(obj)
|
||||||
if representation.RepresentationType in ["Tessellation", "Brep", "Annotation2D"]:
|
|
||||||
IfcStore.edited_objs.add(obj)
|
|
||||||
elif IfcStore.get_file().by_id(obj.BIMObjectProperties.ifc_definition_id).is_a("IfcGridAxis"):
|
elif IfcStore.get_file().by_id(obj.BIMObjectProperties.ifc_definition_id).is_a("IfcGridAxis"):
|
||||||
IfcStore.edited_objs.add(obj)
|
IfcStore.edited_objs.add(obj)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user