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 18:29:31 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-11-07 18:36:25 +0300
commitba1197fe5e27f1cb7be281b3f20166a69050a273 (patch)
treed2852f12af386701db2f3c8dddf96b185efb248e /source/creator
parentf16199d479189f1f142aebecf896182a7276c483 (diff)
Depsgraph: Simplify some workarounds and make API closer to final
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator_args.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index f16383f3a0a..c3f355f3937 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -440,13 +440,10 @@ static void render_set_depgraph(bContext *C, Render *re)
* is NULL for old files, and there is no workspace).
*/
SceneLayer *scene_layer = scene->render_layers.first;
- Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, scene_layer);
- /* TODO(sergey): This is a temporary solution. */
- if (depsgraph == NULL) {
- scene->depsgraph_legacy = depsgraph = DEG_graph_new();
- DEG_graph_build_from_scene(depsgraph, bmain, scene);
- DEG_graph_on_visible_update(bmain, depsgraph);
- }
+ Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, scene_layer, true);
+ DEG_graph_relations_update(depsgraph, bmain, scene);
+ DEG_graph_on_visible_update(bmain, depsgraph);
+
RE_SetDepsgraph(re, depsgraph);
}