Merge pull request #59479 from Sauermann/fix-rootorder-on-layerchange

Update root order on layer change
This commit is contained in:
Rémi Verschelde 2022-11-02 14:20:24 +01:00
commit ad0349c0e3
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

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();
}
}