mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +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:
|
if obj in not_editing_objs:
|
||||||
obj.select_set(False)
|
obj.select_set(False)
|
||||||
continue
|
continue
|
||||||
|
if obj == props.editing_aggregate:
|
||||||
|
continue
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
if not element or not element.is_a("IfcElement"):
|
if not element or not element.is_a("IfcElement"):
|
||||||
continue
|
continue
|
||||||
@@ -3079,6 +3081,8 @@ class OverrideMove(bpy.types.Operator):
|
|||||||
if obj in not_editing_objs:
|
if obj in not_editing_objs:
|
||||||
obj.select_set(False)
|
obj.select_set(False)
|
||||||
continue
|
continue
|
||||||
|
if obj == props.editing_nest:
|
||||||
|
continue
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
if not element or not element.is_a("IfcElement"):
|
if not element or not element.is_a("IfcElement"):
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -145,3 +145,4 @@ class Aggregate(bonsai.core.tool.Aggregate):
|
|||||||
props.in_aggregate_mode = False
|
props.in_aggregate_mode = False
|
||||||
props.not_editing_objects.clear()
|
props.not_editing_objects.clear()
|
||||||
props.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.in_nest_mode = False
|
||||||
props.not_editing_objects.clear()
|
props.not_editing_objects.clear()
|
||||||
props.editing_objects.clear()
|
props.editing_objects.clear()
|
||||||
|
props.editing_nest = None
|
||||||
|
|||||||
Reference in New Issue
Block a user