Fix T61477: freestyle not updating in animation render (again).

Must use the right function to get animation updates now.
This commit is contained in:
Brecht Van Lommel 2019-02-13 20:04:25 +01:00
parent dbd9b7590a
commit 8365de52bc
Notes: blender-bot 2023-02-14 10:32:59 +01:00
Referenced by issue #61477, Freestyle not updating in animation
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ Render *FRS_do_stroke_rendering(Render *re, ViewLayer *view_layer, int render)
/* Create depsgraph and evaluate scene. */
ViewLayer *scene_view_layer = (ViewLayer*)BLI_findstring(&re->scene->view_layers, view_layer->name, offsetof(ViewLayer, name));
Depsgraph *depsgraph = DEG_graph_new(re->scene, scene_view_layer, DAG_EVAL_RENDER);
BKE_scene_graph_update_tagged(depsgraph, re->main);
BKE_scene_graph_update_for_newframe(depsgraph, re->main);
// prepare Freestyle:
// - load mesh