From a07b143d681e121325283cd0810fea46653da3f6 Mon Sep 17 00:00:00 2001 From: Alexander Montag Date: Wed, 2 Oct 2024 16:29:06 +0200 Subject: [PATCH] Don't filter if there are no matches (once again) --- editor/tree_search.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/tree_search.cpp b/editor/tree_search.cpp index e798460..159343b 100644 --- a/editor/tree_search.cpp +++ b/editor/tree_search.cpp @@ -57,6 +57,9 @@ void TreeSearch::_clean_callable_cache() { void TreeSearch::_filter_tree() { ERR_FAIL_COND(!tree_reference); + if (matching_entries.is_empty()) { + return; + } _filter_tree(tree_reference->get_root(), false); }