summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-03-24 19:14:14 +0100
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-03-24 19:25:38 +0100
commit8d60e8b5d4120d9f9a4868bfb8f0059e733d6d5f (patch)
treef3189fa450e33e570e328e16e991f64f71035613 /scene/main
parent391633760b0ea292af079287faf79c1aee6d9254 (diff)
Update root order on layer change
When the layer of a CanvasLayer changes, the order of roots needs to be recalculated.
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/canvas_layer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/canvas_layer.cpp b/scene/main/canvas_layer.cpp
index 7aa4d391f8..1ca8364127 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();
}
}