mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Allow moving the current aggregate/nest when aggregate/nest mode is active
This commit is contained in:
@@ -3046,6 +3046,8 @@ class OverrideMove(bpy.types.Operator):
|
||||
if obj in not_editing_objs:
|
||||
obj.select_set(False)
|
||||
continue
|
||||
if obj == props.editing_aggregate:
|
||||
continue
|
||||
element = tool.Ifc.get_entity(obj)
|
||||
if not element or not element.is_a("IfcElement"):
|
||||
continue
|
||||
@@ -3079,6 +3081,8 @@ class OverrideMove(bpy.types.Operator):
|
||||
if obj in not_editing_objs:
|
||||
obj.select_set(False)
|
||||
continue
|
||||
if obj == props.editing_nest:
|
||||
continue
|
||||
element = tool.Ifc.get_entity(obj)
|
||||
if not element or not element.is_a("IfcElement"):
|
||||
continue
|
||||
|
||||
@@ -145,3 +145,4 @@ class Aggregate(bonsai.core.tool.Aggregate):
|
||||
props.in_aggregate_mode = False
|
||||
props.not_editing_objects.clear()
|
||||
props.editing_objects.clear()
|
||||
props.editing_aggregate = None
|
||||
|
||||
@@ -120,3 +120,4 @@ class Nest(bonsai.core.tool.Nest):
|
||||
props.in_nest_mode = False
|
||||
props.not_editing_objects.clear()
|
||||
props.editing_objects.clear()
|
||||
props.editing_nest = None
|
||||
|
||||
Reference in New Issue
Block a user