Skip to content

Commit

Permalink
Remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Apr 26, 2024
1 parent a0cbd4f commit 06e0be8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2169,14 +2169,11 @@ bool CanvasItemEditor::_gui_input_move(const Ref<InputEvent> &p_event) {
new_pos = previous_pos + (drag_to - drag_from);
}

int index = 0;
for (List<CanvasItem *>::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;
Expand Down

0 comments on commit 06e0be8

Please sign in to comment.