Don't show Lock & Group buttons for nodes hidden by CanvasLayer

This commit is contained in:
Haoyu Qiu 2022-03-08 19:43:34 +08:00
parent 31b3bda36a
commit fb999ebe22

View file

@ -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;
}