Skip to content

Commit 6402a0f

Browse files
committed
Fix filtered out nodes not getting deselected
1 parent 53be3b7 commit 6402a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/scene/scene_tree_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ bool SceneTreeEditor::_update_filter(TreeItem *p_parent, bool p_scroll_to_select
10981098
// Needs to be deferred to account for possible root visibility change.
10991099
callable_mp(tree, &Tree::scroll_to_item).call_deferred(p_parent, false);
11001100
}
1101-
} else if (n && p_parent->is_selected(0)) {
1101+
} else if (n) {
11021102
editor_selection->remove_node(n);
11031103
p_parent->deselect(0);
11041104
}

0 commit comments

Comments
 (0)