summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-03-08 19:43:34 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-03-08 19:43:34 +0800
commitfb999ebe2204898ebf86c1f50dfb55bf1a5521b6 (patch)
treeb3bc6fe03aa84a9706f950f833849079a805b0dd /editor
parent31b3bda36ad65eb4b65d9102194c09093e8961e3 (diff)
Don't show Lock & Group buttons for nodes hidden by CanvasLayer
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index e43d1feb08..75f97efdbc 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -3580,7 +3580,7 @@ void CanvasItemEditor::_draw_locks_and_groups(Node *p_node, const Transform2D &p
return;
}
CanvasItem *canvas_item = Object::cast_to<CanvasItem>(p_node);
- if (canvas_item && !canvas_item->is_visible()) {
+ if (canvas_item && !canvas_item->is_visible_in_tree()) {
return;
}