Fix unlinking objects with should_delete=False after 75f8e75

It was keeping a reference to that object in IfcStore which could lead to issues.
This commit is contained in:
Andrej730
2024-06-24 17:10:04 +05:00
parent 6d5d15793b
commit cbb7c5620d
@@ -268,6 +268,8 @@ class UnlinkObject(bpy.types.Operator):
obj = obj_copy
obj.name = object_name
elif element:
tool.Ifc.unlink(element)
tool.Root.unlink_object(obj)
for collection in obj.users_collection: