VSE: Fix prefetch initialization sequence
In 8d1978a8e0
bmain entry is updated when prefetching is started,
but this must be done before seq_prefetch_update_context(). Otherwise
created cache keys will be incorrect.
This happens immediately after prefetch is started. When it's refreshed
problem goes away.
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D9581
This commit is contained in:
parent
709ceddab2
commit
8b6ce77f16
|
@ -505,8 +505,6 @@ static PrefetchJob *seq_prefetch_start(const SeqRenderData *context, float cfra)
|
|||
seq_prefetch_init_depsgraph(pfjob);
|
||||
}
|
||||
}
|
||||
seq_prefetch_update_scene(context->scene);
|
||||
seq_prefetch_update_context(context);
|
||||
pfjob->bmain = context->bmain;
|
||||
|
||||
pfjob->cfra = cfra;
|
||||
|
@ -516,6 +514,9 @@ static PrefetchJob *seq_prefetch_start(const SeqRenderData *context, float cfra)
|
|||
pfjob->stop = false;
|
||||
pfjob->running = true;
|
||||
|
||||
seq_prefetch_update_scene(context->scene);
|
||||
seq_prefetch_update_context(context);
|
||||
|
||||
BLI_threadpool_remove(&pfjob->threads, pfjob);
|
||||
BLI_threadpool_insert(&pfjob->threads, pfjob);
|
||||
|
||||
|
|
Loading…
Reference in New Issue