diff --git a/editor/tree_search.cpp b/editor/tree_search.cpp index 6ea4a31..d9cf2ef 100644 --- a/editor/tree_search.cpp +++ b/editor/tree_search.cpp @@ -60,11 +60,10 @@ void TreeSearch::_filter_tree() { _filter_tree(tree_reference->get_root(), false); } -void TreeSearch::_filter_tree(TreeItem * p_item, bool p_parent_matching) { - bool child_visibility = true; +void TreeSearch::_filter_tree(TreeItem *p_item, bool p_parent_matching) { bool visible = number_matches.has(p_item) | p_parent_matching; - if (!visible){ + if (!visible) { p_item->set_visible(visible); } bool is_matching = _vector_has_bsearch(matching_entries, p_item);