mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +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()
|
||||
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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user