Commit: 383a7632036c574e763a89a2fa591a0739ffd6d4
Author: Sergey Sharybin
Date:   Tue Nov 7 10:49:25 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB383a7632036c574e763a89a2fa591a0739ffd6d4

Depsgraph: Fix/workaround command line rendering of sequencer

Really hacky, but allows to run regression tests and see if the new design
is working as expected.

===================================================================

M       source/blender/blenkernel/intern/sequencer.c

===================================================================

diff --git a/source/blender/blenkernel/intern/sequencer.c 
b/source/blender/blenkernel/intern/sequencer.c
index 6097aba4518..9026baee183 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -3352,6 +3352,13 @@ static ImBuf *seq_render_scene_strip(const SeqRenderData 
*context, Sequence *seq
                        if (re == NULL)
                                re = RE_NewSceneRender(scene);
 
+                       /* NOTE: Without this tag rendering from command line 
fails.
+                        * TODO(sergey): Need some proper solution with ported
+                        * BKE_scene_set_background() or 
DEG_on_visible_change() ?
+                        */
+                       RE_SetDepsgraph(re, depsgraph);
+                       DEG_graph_id_tag_update(context->bmain, depsgraph, 
&scene->id, 0);
+
                        BKE_scene_graph_update_for_newframe(context->eval_ctx, 
depsgraph, context->bmain, scene);
                        RE_BlenderFrame(re, context->bmain, scene, NULL, 
camera, scene->lay, frame, false);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to