summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yevdokimov <robert.yevdokimov@autStand.com>2024-01-04 18:07:31 -0500
committerRobert Yevdokimov <robert.yevdokimov@autStand.com>2024-01-04 18:07:31 -0500
commit06f586e89047c3f2f7b33c518acb7e8166fd0f39 (patch)
tree5d26e5ae082a333c9c15a69336c2ec4165111a0d
parentfbaab3cf537a892295aabdfd02c8052e370e6669 (diff)
downloadredot-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.cpp2
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();