Fix #2938. Unlinked objects should no longer synchronise edits after they've changed.

This commit is contained in:
Dion Moult
2023-04-05 21:07:44 +10:00
parent 9b3625717f
commit 9e33d9bfad
@@ -168,6 +168,8 @@ class UnlinkObject(bpy.types.Operator):
objects = context.selected_objects
for obj in objects:
if obj.BIMObjectProperties.ifc_definition_id:
if obj in IfcStore.edited_objs:
IfcStore.edited_objs.remove(obj)
IfcStore.unlink_element(obj=obj)
if obj.data:
obj.data = obj.data.copy()