Skip to content

Commit

Permalink
Don't show Lock & Group buttons for nodes hidden by CanvasLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Mar 8, 2022
1 parent 31b3bda commit fb999eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fb999eb

Please sign in to comment.