Fix #125401: Crash when enabling prefetching

Prefetching thread attempted to render scene strip inside of meta strip,
because `channels` argument was incorrectly set to top-level channels.

Pull Request: https://projects.blender.org/blender/blender/pulls/126092
This commit is contained in:
Richard Antalik
2024-08-14 22:36:11 +02:00
committed by Richard Antalik
parent 27bc773c0b
commit 717b8c08f3

View File

@@ -393,7 +393,8 @@ static bool seq_prefetch_scene_strip_is_rendered(PrefetchJob *pfjob,
/* Iterate over rendered strips. */
for (Sequence *seq : strips) {
if (seq->type == SEQ_TYPE_META &&
seq_prefetch_scene_strip_is_rendered(pfjob, channels, &seq->seqbase, scene_strips, true))
seq_prefetch_scene_strip_is_rendered(
pfjob, &seq->channels, &seq->seqbase, scene_strips, true))
{
return true;
}