diff options
author | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-01-04 18:07:31 -0500 |
---|---|---|
committer | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-01-04 18:07:31 -0500 |
commit | 06f586e89047c3f2f7b33c518acb7e8166fd0f39 (patch) | |
tree | 5d26e5ae082a333c9c15a69336c2ec4165111a0d | |
parent | fbaab3cf537a892295aabdfd02c8052e370e6669 (diff) | |
download | redot-engine-06f586e89047c3f2f7b33c518acb7e8166fd0f39.tar.gz |
Allow ui_cancel to unselect all nodes in 2D, matching 3D behavior
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 3676d1165a..31eecd9db7 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2463,7 +2463,7 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) { } } - if (k.is_valid() && k->is_action_pressed(SNAME("ui_cancel"), false, true) && drag_type == DRAG_NONE && tool == TOOL_SELECT) { + if (k.is_valid() && k->is_action_pressed(SNAME("ui_cancel"), false, true) && drag_type == DRAG_NONE) { // Unselect everything editor_selection->clear(); viewport->queue_redraw(); |