mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
black .
This commit is contained in:
@@ -2099,7 +2099,9 @@ class OverrideModeSetEdit(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
props = tool.Aggregate.get_aggregate_props()
|
props = tool.Aggregate.get_aggregate_props()
|
||||||
if (aggregate or parts) and not props.in_aggregate_mode:
|
if (aggregate or parts) and not props.in_aggregate_mode:
|
||||||
return True
|
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
|
return True
|
||||||
elif parts and aggregate == tool.Ifc.get_entity(props.editing_aggregate):
|
elif parts and aggregate == tool.Ifc.get_entity(props.editing_aggregate):
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class Aggregate(bonsai.core.tool.Aggregate):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def get_aggregates_recursively(cls, element: ifcopenshell.entity_instance) -> set[ifcopenshell.entity_instance]:
|
def get_aggregates_recursively(cls, element: ifcopenshell.entity_instance) -> set[ifcopenshell.entity_instance]:
|
||||||
"""Get elements aggregates recursively, resulting set includes `element`."""
|
"""Get elements aggregates recursively, resulting set includes `element`."""
|
||||||
aggregates = list()
|
aggregates = list()
|
||||||
queue = {element}
|
queue = {element}
|
||||||
while queue:
|
while queue:
|
||||||
element = queue.pop()
|
element = queue.pop()
|
||||||
|
|||||||
Reference in New Issue
Block a user