From c9e0532bc2bb0ac13ae87d654a93b018bad3aa34 Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Mon, 15 Jul 2024 13:14:57 +0200 Subject: [PATCH] Fix "selectable nodes at position clicked" feature in 3D editor --- editor/plugins/node_3d_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 72eea8a27ed..bd720cde932 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -1575,7 +1575,7 @@ void Node3DEditorViewport::_list_select(Ref b) { } else { Node *node_owner = node->get_owner(); if (node == edited_scene || node_owner == edited_scene || (node_owner != nullptr && edited_scene->is_editable_instance(node_owner))) { - if (selection_results.has(node)) { + if (!selection_results.has(node)) { selection_results.append(node); } break;