Deselect hidden nodes on filter

This commit is contained in:
Tomasz Chabora 2019-05-26 20:05:02 +02:00
parent df17cf06d4
commit a019641e73

View file

@ -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 {