diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-03-04 17:22:14 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-03-04 17:25:09 +0300 |
commit | f4677547d430cd16a386094626cbafa23e199ca8 (patch) | |
tree | 6afeaf7691aa975817663b076b23d64eb36bfa82 | |
parent | f96fffe0db53145872a3d60bb8f4bd3b24e8d32b (diff) |
Fix early output check in movie clip prefetch
Was preventing prefetching when clip is offset to a
higher scene frame number than a duration of the clip.
-rw-r--r-- | source/blender/editors/space_clip/clip_editor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c index f6959dd593c..6d4fd927d76 100644 --- a/source/blender/editors/space_clip/clip_editor.c +++ b/source/blender/editors/space_clip/clip_editor.c @@ -958,8 +958,9 @@ static int prefetch_get_final_frame(const bContext *C) /* check whether all the frames from prefetch range are cached */ end_frame = EFRA; - if (clip->len) - end_frame = min_ii(end_frame, clip->len); + if (clip->len) { + end_frame = min_ii(end_frame, SFRA + clip->len - 1); + } return end_frame; } |