summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-04 10:31:47 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-04 10:31:47 +0200
commitb58f34372c57b362d70a1a3453d903b7798865f6 (patch)
tree8c1a5e2b9d479d09fbc355c4b153e62f2227db11 /editor
parent02e9e2d3c04ef9d63095af35ecd92381c292188e (diff)
parentc03377653e71ebb7b586d6957b66f8bceb1d36ed (diff)
Merge pull request #66827 from Mickeon/now-you-see-me-now-you-dont
Fix selection applying to hidden Nodes when filtering Scene Tree Editor
Diffstat (limited to 'editor')
-rw-r--r--editor/scene_tree_editor.cpp4
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);