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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-06 12:21:20 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-04-13 15:17:37 +0300
commita1e2415ed51e2da97e3b182f18f462345a02ce14 (patch)
tree59d54c64e1e19bde4aab0d79aa2a51a66dabc877 /source/blender/makesrna/intern/rna_scene_api.c
parenteec5d3a8a8a26256fbae39d4f1fb01de6a648eea (diff)
Depsgraph: don't pass evaluation context to update functions.
The depsgraph now contains all the state needed to evaluate it. Differential Revision: https://developer.blender.org/D3147
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_scene_api.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c
index d113a5509f8..d2afb43d65e 100644
--- a/source/blender/makesrna/intern/rna_scene_api.c
+++ b/source/blender/makesrna/intern/rna_scene_api.c
@@ -90,11 +90,7 @@ static void rna_Scene_frame_set(Scene *scene, Main *bmain, int frame, float subf
view_layer = view_layer->next)
{
Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, true);
- BKE_scene_graph_update_for_newframe(bmain->eval_ctx,
- depsgraph,
- bmain,
- scene,
- view_layer);
+ BKE_scene_graph_update_for_newframe(depsgraph, bmain);
}
#ifdef WITH_PYTHON
@@ -140,11 +136,7 @@ static void rna_Scene_update_tagged(Scene *scene, Main *bmain)
view_layer = view_layer->next)
{
Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, true);
- BKE_scene_graph_update_tagged(bmain->eval_ctx,
- depsgraph,
- bmain,
- scene,
- view_layer);
+ BKE_scene_graph_update_tagged(depsgraph, bmain);
}
#ifdef WITH_PYTHON