mirror of
https://github.com/godotengine/godot.git
synced 2024-12-31 23:32:19 +00:00
Merge pull request #29200 from KoBeWi/filter_select
Deselect hidden nodes on filter
This commit is contained in:
commit
6f49fc27f8
@ -379,6 +379,12 @@ bool SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
|
||||
}
|
||||
|
||||
if (!keep) {
|
||||
if (editor_selection) {
|
||||
Node *n = get_node(item->get_metadata(0));
|
||||
if (n) {
|
||||
editor_selection->remove_node(n);
|
||||
}
|
||||
}
|
||||
memdelete(item);
|
||||
return false;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user