From 5514126234f84907cc1a1974c6a95aba6ea0dd48 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 8 Mar 2022 19:43:34 +0800 Subject: [PATCH] Don't show Lock & Group buttons for nodes hidden by CanvasLayer (cherry picked from commit fb999ebe2204898ebf86c1f50dfb55bf1a5521b6) --- editor/plugins/canvas_item_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index b8699b308fb..57ac9ccdf0a 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -3825,7 +3825,7 @@ void CanvasItemEditor::_draw_locks_and_groups(Node *p_node, const Transform2D &p return; } CanvasItem *canvas_item = Object::cast_to(p_node); - if (canvas_item && !canvas_item->is_visible()) { + if (canvas_item && !canvas_item->is_visible_in_tree()) { return; }