Skip to content

Commit

Permalink
Merge pull request #94387 from mihe/fix-3d-selection-list
Browse files Browse the repository at this point in the history
Fix "selectable nodes at position clicked" feature in 3D editor
  • Loading branch information
akien-mga committed Jul 26, 2024
2 parents a50cead + c9e0532 commit 6a1ac99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a1ac99

Please sign in to comment.