Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-03-04 17:22:14 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-03-04 17:25:09 +0300
commitf4677547d430cd16a386094626cbafa23e199ca8 (patch)
tree6afeaf7691aa975817663b076b23d64eb36bfa82 /source/blender/editors/space_clip/clip_editor.c
parentf96fffe0db53145872a3d60bb8f4bd3b24e8d32b (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.
Diffstat (limited to 'source/blender/editors/space_clip/clip_editor.c')
-rw-r--r--source/blender/editors/space_clip/clip_editor.c5
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;
}