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:
-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;
}