summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Hermansson <mikael@hermansson.io>2024-07-15 13:14:57 +0200
committerMikael Hermansson <mikael@hermansson.io>2024-07-15 13:14:57 +0200
commitc9e0532bc2bb0ac13ae87d654a93b018bad3aa34 (patch)
treedf0bc46ea5dcb0d36d82cf7669d9f015934b86f2
parent97b8ad1af0f2b4a216f6f1263bef4fbc69e56c7b (diff)
downloadredot-engine-c9e0532bc2bb0ac13ae87d654a93b018bad3aa34.tar.gz
Fix "selectable nodes at position clicked" feature in 3D editor
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index 72eea8a27e..bd720cde93 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<InputEventMouseButton> 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;