Allow moving the current aggregate/nest when aggregate/nest mode is active

This commit is contained in:
Bruno Perdigão
2025-01-18 12:17:28 -03:00
parent 015d8f6722
commit 7fcb7c6433
3 changed files with 6 additions and 0 deletions
@@ -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