mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +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
|
parent_collection = parent_obj.BIMObjectProperties.collection
|
||||||
for child in collection.children:
|
for child in collection.children:
|
||||||
parent_collection.children.link(child)
|
parent_collection.children.link(child)
|
||||||
|
for child_object in collection.objects:
|
||||||
|
parent_collection.objects.link(child_object)
|
||||||
bpy.data.collections.remove(collection)
|
bpy.data.collections.remove(collection)
|
||||||
if getattr(element, "FillsVoids", None):
|
if getattr(element, "FillsVoids", None):
|
||||||
bpy.ops.bim.remove_filling(filling=element.id())
|
bpy.ops.bim.remove_filling(filling=element.id())
|
||||||
|
|||||||
Reference in New Issue
Block a user