mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
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:
@@ -268,6 +268,8 @@ class UnlinkObject(bpy.types.Operator):
|
|||||||
|
|
||||||
obj = obj_copy
|
obj = obj_copy
|
||||||
obj.name = object_name
|
obj.name = object_name
|
||||||
|
elif element:
|
||||||
|
tool.Ifc.unlink(element)
|
||||||
|
|
||||||
tool.Root.unlink_object(obj)
|
tool.Root.unlink_object(obj)
|
||||||
for collection in obj.users_collection:
|
for collection in obj.users_collection:
|
||||||
|
|||||||
Reference in New Issue
Block a user