mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 12:32:39 +00:00
Fix bug where auto assignment in the collection hierarchy failed if you had filtered out aggregates and you were assigning a subelement of an aggregate
This commit is contained in:
@@ -82,9 +82,10 @@ class Collector(blenderbim.core.tool.Collector):
|
||||
aggregate = ifcopenshell.util.element.get_aggregate(element)
|
||||
if aggregate:
|
||||
aggregate_obj = tool.Ifc.get_object(aggregate)
|
||||
collection = bpy.data.collections.get(aggregate_obj.name)
|
||||
if collection:
|
||||
return collection
|
||||
if aggregate_obj:
|
||||
collection = bpy.data.collections.get(aggregate_obj.name)
|
||||
if collection:
|
||||
return collection
|
||||
|
||||
container = ifcopenshell.util.element.get_container(element)
|
||||
if container:
|
||||
|
||||
Reference in New Issue
Block a user