mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 11:53:44 +00:00
Fixed issue duplicating IfcRelSpaceBoundary #4043
This commit is contained in:
@@ -800,6 +800,11 @@ class OverrideDuplicateMove(bpy.types.Operator):
|
|||||||
# clean up the orphaned mesh with ifc id of the original object to avoid confusion
|
# clean up the orphaned mesh with ifc id of the original object to avoid confusion
|
||||||
# IfcGridAxis keeps the same mesh data (it's pointing to ifc id 0, so it's not a problem)
|
# IfcGridAxis keeps the same mesh data (it's pointing to ifc id 0, so it's not a problem)
|
||||||
if new and temp_data and not new.is_a("IfcGridAxis"):
|
if new and temp_data and not new.is_a("IfcGridAxis"):
|
||||||
|
if new.is_a("IfcRelSpaceBoundary"):
|
||||||
|
surface = new.ConnectionGeometry.SurfaceOnRelatingElement
|
||||||
|
temp_data.name = f"0/{surface.id()}"
|
||||||
|
temp_data.BIMMeshProperties.ifc_definition_id = surface.id()
|
||||||
|
else:
|
||||||
tool.Blender.remove_data_block(temp_data)
|
tool.Blender.remove_data_block(temp_data)
|
||||||
|
|
||||||
if new:
|
if new:
|
||||||
|
|||||||
Reference in New Issue
Block a user