You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user