Deselect hidden nodes on filter
This commit is contained in:
parent
df17cf06d4
commit
a019641e73
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue