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.
This commit is contained in:
Sergey Sharybin 2017-11-07 10:49:25 +01:00
parent 60bf1c05e5
commit 383a763203
1 changed files with 7 additions and 0 deletions

View File

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