diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-03-26 16:49:59 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-03-26 16:50:18 +0300 |
commit | c0ef4e9b788b8db433bf3e92bd19ee00f86f9866 (patch) | |
tree | 3ef303f1d1cfcbfbb5c6026a20a9c288df202a75 /source/blender/editors/screen | |
parent | f80064f2d24408aa85c84f3c328ef470baf39e7c (diff) |
Fix T44122, rendering OpenGL preview movie with audio has wrong audio
range and extra frames.
Issue here is that the movie backend would unconditionally use the start
frame of the scene instead of the preview frame. Solved by passing an
explicit "preview" argument.
Strictly speaking, the preview argument is part of the renderdata
struct, that is also passed to the code, but when rendering the final
result we want to unconditionally render the full range regardless of
the preview setting of the render structure.
However, OpenGL rendering does use the preview range so we need to
account for that when making those exports.
This is also a nice chance to correct the filenames, which still used
the full range.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screendump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screendump.c b/source/blender/editors/screen/screendump.c index 9c05f1d4780..330bc7e3395 100644 --- a/source/blender/editors/screen/screendump.c +++ b/source/blender/editors/screen/screendump.c @@ -344,7 +344,7 @@ static void screenshot_startjob(void *sjv, short *stop, short *do_update, float rd.frs_sec_base = 1.0f; if (BKE_imtype_is_movie(rd.im_format.imtype)) { - if (!mh->start_movie(sj->scene, &rd, sj->dumpsx, sj->dumpsy, &sj->reports)) { + if (!mh->start_movie(sj->scene, &rd, sj->dumpsx, sj->dumpsy, &sj->reports, false)) { printf("screencast job stopped\n"); return; } |