diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-08 11:56:43 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-08 11:56:43 +0100 |
commit | 4aa8e87e5023949c22fe84f35f6da80e7042b215 (patch) | |
tree | c509b03de63d9d8f73dbc3e327fa459b8d34125f | |
parent | f46465ba1462c573812ed01f8adf000cf71d595c (diff) | |
parent | 06f586e89047c3f2f7b33c518acb7e8166fd0f39 (diff) | |
download | redot-engine-4aa8e87e5023949c22fe84f35f6da80e7042b215.tar.gz |
Merge pull request #86805 from ryevdokimov/clear-nodes-on-ui-cancel-2d
Allow `ui_cancel` to unselect all nodes in all edit modes 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 3c68b2c4ed..7d61d734f5 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2464,7 +2464,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(); |