Merge pull request #59479 from Sauermann/fix-rootorder-on-layerchange
Update root order on layer change
This commit is contained in:
commit
ad0349c0e3
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue