From 8d29f16963c30dcd073964b028ff6d5f1303b952 Mon Sep 17 00:00:00 2001 From: Alexander Montag Date: Wed, 25 Sep 2024 17:45:59 +0000 Subject: [PATCH] Fix filtering: Allow matching for root as ancestor --- editor/tree_search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/tree_search.cpp b/editor/tree_search.cpp index 14cbfad..92ec519 100644 --- a/editor/tree_search.cpp +++ b/editor/tree_search.cpp @@ -159,7 +159,7 @@ void TreeSearch::_filter_tree(const String &p_search_mask) { while (first_counting_ancestor && !number_matches.has(first_counting_ancestor)) { first_counting_ancestor = first_counting_ancestor->get_parent(); } - if (!first_counting_ancestor || first_counting_ancestor == tree_reference->get_root() || !_vector_has_bsearch(matching_entries, first_counting_ancestor)) { + if (!first_counting_ancestor || !_vector_has_bsearch(matching_entries, first_counting_ancestor)) { cur_item->set_visible(false); } }