Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-11-07 12:49:25 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-11-07 13:37:45 +0300
commit383a7632036c574e763a89a2fa591a0739ffd6d4 (patch)
treeb8bab70d5902e93df2af2372346f4a69e676cdab /source/blender/blenkernel
parent60bf1c05e5d28634c1c1ae32ceaf66424bd24198 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c7
1 files changed, 7 insertions, 0 deletions
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);