Fix #5527. Unlinking an object should never share its mesh data with IFC elements.

This commit is contained in:
Dion Moult
2024-10-08 22:47:22 +11:00
parent 3c51c6325c
commit 89b1f9c2d7
@@ -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)