diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-09-13 21:24:49 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-09-13 21:25:50 +0300 |
commit | 3302b7e6a3768f04ef545634ee18a3280dfe8f62 (patch) | |
tree | ceaf903299ffef2141611a9dcdc3e8138595e782 /source/blender/sequencer/intern/render.c | |
parent | 08a8de739d8c7fa60f257ed171d292879edae013 (diff) |
Fix T100998: Speed effect not rendering scene strip subframes
After change in 19bff8eb51f, subframe must be calculated for function
`RE_RenderFrame` in order to render subframes.
Diffstat (limited to 'source/blender/sequencer/intern/render.c')
-rw-r--r-- | source/blender/sequencer/intern/render.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/sequencer/intern/render.c b/source/blender/sequencer/intern/render.c index fd3b6103b94..ea9090addf5 100644 --- a/source/blender/sequencer/intern/render.c +++ b/source/blender/sequencer/intern/render.c @@ -1506,8 +1506,16 @@ static ImBuf *seq_render_scene_strip(const SeqRenderData *context, re = RE_NewSceneRender(scene); } - RE_RenderFrame( - re, context->bmain, scene, have_comp ? NULL : view_layer, camera, frame, 0.0f, false); + const float subframe = frame - floorf(frame); + + RE_RenderFrame(re, + context->bmain, + scene, + have_comp ? NULL : view_layer, + camera, + floorf(frame), + subframe, + false); /* restore previous state after it was toggled on & off by RE_RenderFrame */ G.is_rendering = is_rendering; |