diff options
Diffstat (limited to 'servers/visual/rasterizer_rd/rasterizer_rd.cpp')
-rw-r--r-- | servers/visual/rasterizer_rd/rasterizer_rd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/visual/rasterizer_rd/rasterizer_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_rd.cpp index 8cc090832b..fc38b90b88 100644 --- a/servers/visual/rasterizer_rd/rasterizer_rd.cpp +++ b/servers/visual/rasterizer_rd/rasterizer_rd.cpp @@ -79,6 +79,7 @@ void RasterizerRD::begin_frame(double frame_step) { frame++; time += frame_step; canvas->set_time(time); + scene->set_time(time); } void RasterizerRD::end_frame(bool p_swap_buffers) { @@ -176,5 +177,5 @@ RasterizerRD::RasterizerRD() { storage = memnew(RasterizerStorageRD); canvas = memnew(RasterizerCanvasRD(storage)); - scene = memnew(RasterizerSceneForwardRD); + scene = memnew(RasterizerSceneForwardRD(storage)); } |