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:
parent
391633760b
commit
8d60e8b5d4
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue