diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-01-05 06:04:06 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-01-05 06:04:06 +0300 |
commit | f359102589f0ebeeb90376ae66f06678dcc596e7 (patch) | |
tree | cdf2e48df2e8abd6293063d9b7110490582b23f4 /source/blender/sequencer | |
parent | 9b17e71c23a9bb0d5699d35d4a8703368eea3f6b (diff) |
VSE: Fix incorrect condition for skipping prefetch frames
This error was overlooked in commit be69f23b687a.
Diffstat (limited to 'source/blender/sequencer')
-rw-r--r-- | source/blender/sequencer/intern/prefetch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/sequencer/intern/prefetch.c b/source/blender/sequencer/intern/prefetch.c index 55df17c01f9..6deea305224 100644 --- a/source/blender/sequencer/intern/prefetch.c +++ b/source/blender/sequencer/intern/prefetch.c @@ -380,7 +380,7 @@ static bool seq_prefetch_do_skip_frame(Scene *scene) ibuf = NULL; } - ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_FINAL_OUT, false); + ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_COMPOSITE, false); if (ibuf != NULL) { cached_types |= SEQ_CACHE_STORE_COMPOSITE; IMB_freeImBuf(ibuf); @@ -406,8 +406,7 @@ static bool seq_prefetch_do_skip_frame(Scene *scene) } /* It is only safe to use these cache types if strip is last in stack. */ - if (i == count - 1 && - (cached_types & (SEQ_CACHE_STORE_PREPROCESSED | SEQ_CACHE_STORE_RAW)) != 0) { + if (i == count - 1 && (cached_types & SEQ_CACHE_STORE_FINAL_OUT) != 0) { continue; } |