mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +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,10 +91,11 @@ class BIM_OT_aggregate_unassign_object(bpy.types.Operator, Operator):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Removes Pset related to Linked Aggregates
|
# Removes Pset related to Linked Aggregates
|
||||||
pset = ifcopenshell.util.element.get_pset(element, 'BBIM_Linked_Aggregate')
|
if not element.is_a('IfcElementAssembly'):
|
||||||
if pset:
|
pset = ifcopenshell.util.element.get_pset(element, 'BBIM_Linked_Aggregate')
|
||||||
pset = tool.Ifc.get().by_id(pset["id"])
|
if pset:
|
||||||
ifcopenshell.api.run("pset.remove_pset", tool.Ifc.get(), pset=pset)
|
pset = tool.Ifc.get().by_id(pset["id"])
|
||||||
|
ifcopenshell.api.run("pset.remove_pset", tool.Ifc.get(), pset=pset)
|
||||||
|
|
||||||
|
|
||||||
class BIM_OT_enable_editing_aggregate(bpy.types.Operator, Operator):
|
class BIM_OT_enable_editing_aggregate(bpy.types.Operator, Operator):
|
||||||
|
|||||||
Reference in New Issue
Block a user