From 06e0be8d04c8d25b98faabbe20bdc52a0a508044 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 26 Apr 2024 23:55:16 +0200 Subject: [PATCH] Remove unused variable. --- editor/plugins/canvas_item_editor_plugin.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 43ff58a05..e9bc6f0e1 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2169,14 +2169,11 @@ bool CanvasItemEditor::_gui_input_move(const Ref &p_event) { new_pos = previous_pos + (drag_to - drag_from); } - int index = 0; for (List::Element *E = drag_selection.front(); E; E = E->next()) { CanvasItem *canvas_item = E->get(); Transform2D xform = canvas_item->get_global_transform_with_canvas().affine_inverse() * canvas_item->get_transform(); canvas_item->_edit_set_position(canvas_item->_edit_get_position() + xform.xform(new_pos) - xform.xform(previous_pos)); - - index++; } } return true;