diff options
author | Micky <micheledevita2@gmail.com> | 2022-10-03 18:28:43 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2022-10-03 18:28:43 +0200 |
commit | c03377653e71ebb7b586d6957b66f8bceb1d36ed (patch) | |
tree | 4aff55170c9fda94c5ad5eb8c1028fb3f016de5e /editor | |
parent | 321251a133920912f2764272626f32c788ab70b9 (diff) |
Fix selection applying to hidden Nodes when filtering Scene Tree Editor
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scene_tree_editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index 7bcc8aa078..689570bcf6 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -804,6 +804,10 @@ void SceneTreeEditor::_cell_multi_selected(Object *p_object, int p_cell, bool p_ TreeItem *item = Object::cast_to<TreeItem>(p_object); ERR_FAIL_COND(!item); + if (!item->is_visible()) { + return; + } + NodePath np = item->get_metadata(0); Node *n = get_node(np); |