Don't filter if there are no matches (once again)

This commit is contained in:
Alexander Montag 2024-10-02 16:29:06 +02:00
parent b7b6312184
commit a07b143d68
No known key found for this signature in database
GPG Key ID: 07FE50B35A2B7524
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ void TreeSearch::_clean_callable_cache() {
void TreeSearch::_filter_tree() { void TreeSearch::_filter_tree() {
ERR_FAIL_COND(!tree_reference); ERR_FAIL_COND(!tree_reference);
if (matching_entries.is_empty()) {
return;
}
_filter_tree(tree_reference->get_root(), false); _filter_tree(tree_reference->get_root(), false);
} }