diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-02 14:20:24 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-02 14:20:24 +0100 |
commit | ad0349c0e310f841999f79a5fd41c6002ebbc05c (patch) | |
tree | e01494736adfd5a52a25be0dbb77f58c9ed3a053 | |
parent | 9ba778e6f2b5ad583a3e8df57c6331719aea7020 (diff) | |
parent | 8d60e8b5d4120d9f9a4868bfb8f0059e733d6d5f (diff) |
Merge pull request #59479 from Sauermann/fix-rootorder-on-layerchange
Update root order on layer change
-rw-r--r-- | scene/main/canvas_layer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/canvas_layer.cpp b/scene/main/canvas_layer.cpp index 214efe432b..be5788739b 100644 --- a/scene/main/canvas_layer.cpp +++ b/scene/main/canvas_layer.cpp @@ -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(); } } |