[Bf-blender-cvs] [383a7632036] blender2.8: Depsgraph: Fix/workaround command line rendering of sequencer

Sergey Sharybin noreply at git.blender.org
Tue Nov 7 11:39:00 CET 2017


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);



More information about the Bf-blender-cvs mailing list