mirror of https://github.com/godotengine/godot
Merge pull request #108312 from KoBeWi/deselect_deselected_just_to_be_sure
Fix filtered out nodes not getting deselected
This commit is contained in:
commit
fc1e61ad94
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue