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:
authorRichard Antalik <richardantalik@gmail.com>2021-01-05 06:04:06 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-01-05 06:04:06 +0300
commitf359102589f0ebeeb90376ae66f06678dcc596e7 (patch)
treecdf2e48df2e8abd6293063d9b7110490582b23f4 /source/blender/sequencer
parent9b17e71c23a9bb0d5699d35d4a8703368eea3f6b (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.c5
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;
}