Update root order on layer change

When the layer of a CanvasLayer changes, the order of roots needs to be recalculated.
This commit is contained in:
Markus Sauermann 2022-03-24 19:14:14 +01:00
parent 391633760b
commit 8d60e8b5d4

View file

@ -38,6 +38,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_index());
vp->_gui_set_root_order_dirty();
}
}