mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix filtered out nodes not getting deselected
This commit is contained in:
@@ -1098,7 +1098,7 @@ bool SceneTreeEditor::_update_filter(TreeItem *p_parent, bool p_scroll_to_select
|
||||
// Needs to be deferred to account for possible root visibility change.
|
||||
callable_mp(tree, &Tree::scroll_to_item).call_deferred(p_parent, false);
|
||||
}
|
||||
} else if (n && p_parent->is_selected(0)) {
|
||||
} else if (n) {
|
||||
editor_selection->remove_node(n);
|
||||
p_parent->deselect(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user