diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-03-08 19:43:34 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-03-08 19:43:34 +0800 |
commit | fb999ebe2204898ebf86c1f50dfb55bf1a5521b6 (patch) | |
tree | b3bc6fe03aa84a9706f950f833849079a805b0dd /editor/plugins | |
parent | 31b3bda36ad65eb4b65d9102194c09093e8961e3 (diff) |
Don't show Lock & Group buttons for nodes hidden by CanvasLayer
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
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; } |