This commit is contained in:
Ryan Schultz
2024-04-27 18:13:38 -05:00
parent 3848a21136
commit dcbd6a925d
@@ -1667,6 +1667,8 @@ class Drawing(blenderbim.core.tool.Drawing):
#add aggregate too, if element is host by one #add aggregate too, if element is host by one
if i.Decomposes: if i.Decomposes:
aggregate = i.Decomposes[0].RelatingObject aggregate = i.Decomposes[0].RelatingObject
#remove IfcProject for class iterator. See https://github.com/IfcOpenShell/IfcOpenShell/issues/4361#issuecomment-2081223615
if not aggregate.is_a("IfcProject"):
updated_set.add(aggregate) updated_set.add(aggregate)
# After the iteration is complete, update elements with updated set # After the iteration is complete, update elements with updated set