mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fix #5527. Unlinking an object should never share its mesh data with IFC elements.
This commit is contained in:
@@ -291,6 +291,8 @@ class UnlinkObject(bpy.types.Operator, tool.Ifc.Operator):
|
||||
obj = obj_copy
|
||||
obj.name = object_name
|
||||
elif element:
|
||||
if obj.data.users > 1:
|
||||
obj.data = obj.data.copy()
|
||||
tool.Ifc.unlink(element)
|
||||
|
||||
tool.Root.unlink_object(obj)
|
||||
|
||||
Reference in New Issue
Block a user