Fix T61477: freestyle not updating in animation render (again).
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 13 Feb 2019 19:04:25 +0000 (20:04 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 13 Feb 2019 19:04:44 +0000 (20:04 +0100)
Must use the right function to get animation updates now.

source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp

index 787e725..9b186ab 100644 (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