Optimistically track all object edits whenever you toggle edit mode, not just meshes.

This commit is contained in:
Dion Moult
2021-10-29 18:04:47 +11:00
parent 109149a0be
commit b32bbb89a1
+1 -3
View File
@@ -50,9 +50,7 @@ def mode_callback(obj, data):
):
continue
if obj.data.BIMMeshProperties.ifc_definition_id:
representation = IfcStore.get_file().by_id(obj.data.BIMMeshProperties.ifc_definition_id)
if representation.RepresentationType in ["Tessellation", "Brep", "Annotation2D"]:
IfcStore.edited_objs.add(obj)
IfcStore.edited_objs.add(obj)
elif IfcStore.get_file().by_id(obj.BIMObjectProperties.ifc_definition_id).is_a("IfcGridAxis"):
IfcStore.edited_objs.add(obj)