mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 22:50:04 +00:00
fix: when subaggregate that is a linked aggregate is unassinged from the main aggregate, it remains a linked aggregate.
This commit is contained in:
@@ -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"])
|
||||||
|
|||||||
Reference in New Issue
Block a user