diff --git a/scene/main/canvas_layer.cpp b/scene/main/canvas_layer.cpp index 937ef9464..c67a17ee5 100644 --- a/scene/main/canvas_layer.cpp +++ b/scene/main/canvas_layer.cpp @@ -37,6 +37,7 @@ void CanvasLayer::set_layer(int p_xform) { layer = p_xform; if (viewport.is_valid()) { RenderingServer::get_singleton()->viewport_set_canvas_stacking(viewport, canvas, layer, get_position_in_parent()); + vp->_gui_set_root_order_dirty(); } }