diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-12 11:13:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 11:13:36 +0200 |
commit | 1db4b307f9d85c499223e8cf3adaadb7e4558fa4 (patch) | |
tree | e5e982b25e7b0dc56669c03582ef27fb018e9241 /editor | |
parent | a4958bb867e9d161fa327435755248878a3b17c2 (diff) | |
parent | 9dc81e6ca7c06ea08c600102d5091c39c9f286c2 (diff) |
Merge pull request #21984 from groud/fix_2D_selection
Fix 2D selection
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 042f085e98..d2a9a18a43 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1858,22 +1858,9 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) { // Retrieve the bones _get_bones_at_pos(click, selection); - for (int i = 0; i < selection.size(); i++) { - if (editor_selection->is_selected(selection[i].item)) { - // Drag the node(s) if requested - List<CanvasItem *> selection = _get_edited_canvas_items(); - - drag_type = DRAG_MOVE; - drag_selection = selection; - drag_from = click; - _save_canvas_item_state(drag_selection); - - return true; - } - } - - if (!selection.empty()) + if (!selection.empty()) { canvas_item = selection[0].item; + } if (!canvas_item) { // Start a box selection |