Fix issue with DuplicateMoveLinkedAggregate object selection.

When dealing with multiple aggregates, the operator was not selecting
the right aggregate to move.
This commit is contained in:
Bruno Perdigão
2025-07-16 17:11:31 -03:00
parent afb2742c2f
commit b305e2354b
@@ -1315,6 +1315,10 @@ class DuplicateMoveLinkedAggregate(bpy.types.Operator):
if location_from_3d_cursor:
get_location_from_3d_cursor(old_to_new, selected_element)
bpy.ops.object.select_all(action="DESELECT")
new_aggregate = old_to_new[selected_element][0]
tool.Blender.set_active_object(tool.Ifc.get_object(new_aggregate))
bonsai.bim.handler.refresh_ui_data()
return old_to_new