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:
Andrej730
2024-02-12 12:01:04 +05:00
parent 5e5de0bbd8
commit 29ce8d5d80
@@ -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())