mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Fix bug removing relating object of IfcRelNests
it was unlinking current collection of the related object and related objects were missing after
This commit is contained in:
@@ -101,6 +101,8 @@ class Geometry(blenderbim.core.tool.Geometry):
|
||||
parent_collection = parent_obj.BIMObjectProperties.collection
|
||||
for child in collection.children:
|
||||
parent_collection.children.link(child)
|
||||
for child_object in collection.objects:
|
||||
parent_collection.objects.link(child_object)
|
||||
bpy.data.collections.remove(collection)
|
||||
if getattr(element, "FillsVoids", None):
|
||||
bpy.ops.bim.remove_filling(filling=element.id())
|
||||
|
||||
Reference in New Issue
Block a user