summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-16 00:06:41 +0100
committerGitHub <noreply@github.com>2022-03-16 00:06:41 +0100
commit1de66f135748cc2c809b8d4529571e75ba90eb7e (patch)
tree3a6602b30fa024710d3211574a4b29b51c1d86de /editor
parentfb28025785082f5e2f523af83e56219f308c3d6d (diff)
parent6c4dbf92acc9ee60927b00c60fbce0588a559421 (diff)
Merge pull request #59172 from taigi100/Bugfix-#58726-List-items-are-shown-twice-in-the-2D-editor's-"Show-list-of-selectable-nodes-at-position-clicked"-mode
Update to only use select tool on button press
Diffstat (limited to 'editor')
-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 d74499621d..d713e70251 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -2216,7 +2216,7 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) {
Ref<InputEventKey> k = p_event;
if (drag_type == DRAG_NONE) {
- if (b.is_valid() &&
+ if (b.is_valid() && b->is_pressed() &&
((b->get_button_index() == MouseButton::RIGHT && b->is_alt_pressed() && tool == TOOL_SELECT) ||
(b->get_button_index() == MouseButton::LEFT && tool == TOOL_LIST_SELECT))) {
// Popup the selection menu list