Fix compositor preview not respecting un-keyed changes

This is a part of T66099.
This commit is contained in:
Sergey Sharybin 2019-06-27 16:21:18 +02:00
parent ccfb98511b
commit 91e00bd703
Notes: blender-bot 2023-04-19 22:54:54 +02:00
Referenced by issue #66099, Color Balance node
1 changed files with 4 additions and 1 deletions

View File

@ -207,7 +207,10 @@ static void compo_initjob(void *cjv)
cj->compositor_depsgraph = DEG_graph_new(scene, view_layer, DAG_EVAL_RENDER);
DEG_graph_build_for_compositor_preview(
cj->compositor_depsgraph, bmain, scene, view_layer, cj->ntree);
DEG_evaluate_on_framechange(bmain, cj->compositor_depsgraph, CFRA);
/* NOTE: Don't update animation to preserve unkeyed changes, this means can not use
* evaluate_on_framechange. */
DEG_evaluate_on_refresh(cj->compositor_depsgraph);
bNodeTree *ntree_eval = (bNodeTree *)DEG_get_evaluated_id(cj->compositor_depsgraph,
&cj->ntree->id);