mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +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 = obj_copy
|
||||||
obj.name = object_name
|
obj.name = object_name
|
||||||
elif element:
|
elif element:
|
||||||
|
if obj.data.users > 1:
|
||||||
|
obj.data = obj.data.copy()
|
||||||
tool.Ifc.unlink(element)
|
tool.Ifc.unlink(element)
|
||||||
|
|
||||||
tool.Root.unlink_object(obj)
|
tool.Root.unlink_object(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user