fix: when subaggregate that is a linked aggregate is unassinged from the main aggregate, it remains a linked aggregate.

This commit is contained in:
Bruno Perdigão
2024-03-16 15:27:04 -03:00
parent 3bf4a8ef52
commit 4829c4c02b
@@ -91,6 +91,7 @@ class BIM_OT_aggregate_unassign_object(bpy.types.Operator, Operator):
) )
# Removes Pset related to Linked Aggregates # Removes Pset related to Linked Aggregates
if not element.is_a('IfcElementAssembly'):
pset = ifcopenshell.util.element.get_pset(element, 'BBIM_Linked_Aggregate') pset = ifcopenshell.util.element.get_pset(element, 'BBIM_Linked_Aggregate')
if pset: if pset:
pset = tool.Ifc.get().by_id(pset["id"]) pset = tool.Ifc.get().by_id(pset["id"])