diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-23 08:32:29 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-23 08:32:29 +0100 |
commit | 10d6a07287ed63e9e89ee267a5eadc764943b0b9 (patch) | |
tree | c6d8500670fdc7810764bb2905d52b4507e75e7c | |
parent | c13907df0fb2fe6d73d880909c805b09874fba64 (diff) | |
parent | f8df18ef47a32be7f5803d7bdc1562458bef6d5c (diff) |
Merge pull request #69031 from Sauermann/fix-canvas-transform-init
Fix CanvasTransform on RenderingServer when Viewport enters SceneTree
-rw-r--r-- | scene/main/viewport.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 9e440405af..345d5de937 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -362,6 +362,7 @@ void Viewport::_notification(int p_what) { current_canvas = find_world_2d()->get_canvas(); RenderingServer::get_singleton()->viewport_attach_canvas(viewport, current_canvas); + RenderingServer::get_singleton()->viewport_set_canvas_transform(viewport, current_canvas, canvas_transform); RenderingServer::get_singleton()->viewport_set_canvas_cull_mask(viewport, canvas_cull_mask); _update_audio_listener_2d(); #ifndef _3D_DISABLED |