mirror of
https://github.com/godotengine/godot.git
synced 2025-01-19 00:11: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 (!keep) {
|
||||||
|
if (editor_selection) {
|
||||||
|
Node *n = get_node(item->get_metadata(0));
|
||||||
|
if (n) {
|
||||||
|
editor_selection->remove_node(n);
|
||||||
|
}
|
||||||
|
}
|
||||||
memdelete(item);
|
memdelete(item);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user