Fix T74346 VSE: Prefetching doesn't work properly with property animations

Make sure depsgraph was updated before evaluating the animation.

Reviewed By: ISS

Differential Revision: https://developer.blender.org/D7467
This commit is contained in:
Richard Antalik 2020-04-27 00:34:10 +02:00
parent c13ad410a6
commit d0d16eb7d3
Notes: blender-bot 2023-02-14 07:36:17 +01:00
Referenced by issue #76157, Intel Open Image Denoise artifact through 99%+ transparent area
Referenced by issue #74346, VSE: Prefetching doesn't work properly with property animations
Referenced by issue #74243, Workbench x-ray, wireframe and anti-aliasing artifacts on NVIDIA / Linux
1 changed files with 1 additions and 1 deletions

View File

@ -331,6 +331,7 @@ static void *seq_prefetch_frames(void *job)
while (pfjob->cfra + pfjob->num_frames_prefetched <= pfjob->scene->r.efra) {
pfjob->scene_eval->ed->prefetch_job = NULL;
seq_prefetch_update_depsgraph(pfjob);
AnimData *adt = BKE_animdata_from_id(&pfjob->context_cpy.scene->id);
BKE_animsys_evaluate_animdata(pfjob->context_cpy.scene,
&pfjob->context_cpy.scene->id,
@ -338,7 +339,6 @@ static void *seq_prefetch_frames(void *job)
pfjob->cfra + pfjob->num_frames_prefetched,
ADT_RECALC_ALL,
false);
seq_prefetch_update_depsgraph(pfjob);
/* This is quite hacky solution:
* We need cross-reference original scene with copy for cache.