This commit is contained in:
Andrej730
2025-04-17 18:55:36 +05:00
parent 030dc6460a
commit 95f754d2df
2 changed files with 4 additions and 2 deletions
@@ -2099,7 +2099,9 @@ class OverrideModeSetEdit(bpy.types.Operator, tool.Ifc.Operator):
props = tool.Aggregate.get_aggregate_props()
if (aggregate or parts) and not props.in_aggregate_mode:
return True
elif element != tool.Ifc.get_entity(props.editing_aggregate) and aggregate != tool.Ifc.get_entity(props.editing_aggregate):
elif element != tool.Ifc.get_entity(props.editing_aggregate) and aggregate != tool.Ifc.get_entity(
props.editing_aggregate
):
return True
elif parts and aggregate == tool.Ifc.get_entity(props.editing_aggregate):
return True
+1 -1
View File
@@ -91,7 +91,7 @@ class Aggregate(bonsai.core.tool.Aggregate):
@classmethod
def get_aggregates_recursively(cls, element: ifcopenshell.entity_instance) -> set[ifcopenshell.entity_instance]:
"""Get elements aggregates recursively, resulting set includes `element`."""
aggregates = list()
aggregates = list()
queue = {element}
while queue:
element = queue.pop()