From 71dae0cf40aed60e4eac1e1e4207ae2fc5cfc9a0 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 17 Oct 2013 09:19:03 +0000 Subject: Fix #37119: MCE: Prefetching doesn't fetch last frame of an image-sequence. Silly mistake in final condition. Now it works fine. Would be nice to have this for the final release, simple oneliner. --- source/blender/editors/space_clip/clip_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c index f5db34d87d7..3d7450a3132 100644 --- a/source/blender/editors/space_clip/clip_editor.c +++ b/source/blender/editors/space_clip/clip_editor.c @@ -711,7 +711,7 @@ static unsigned char *prefetch_thread_next_frame(PrefetchQueue *queue, MovieClip current_frame = prefetch_find_uncached_frame(clip, queue->current_frame + 1, queue->end_frame, queue->render_size, queue->render_flag, 1); /* switch direction if read frames from current up to scene end frames */ - if (current_frame >= queue->end_frame) { + if (current_frame > queue->end_frame) { queue->current_frame = queue->initial_frame; queue->direction = -1; } -- cgit v1.2.3