diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene_api.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c index 78afba0e426..3cdb6433882 100644 --- a/source/blender/makesrna/intern/rna_scene_api.c +++ b/source/blender/makesrna/intern/rna_scene_api.c @@ -90,7 +90,11 @@ static void rna_Scene_frame_set(Scene *scene, Main *bmain, int frame, float subf scene_layer = scene_layer->next) { Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, scene_layer, true); - BKE_scene_graph_update_for_newframe(bmain->eval_ctx, depsgraph, bmain, scene); + BKE_scene_graph_update_for_newframe(bmain->eval_ctx, + depsgraph, + bmain, + scene, + scene_layer); } #ifdef WITH_PYTHON @@ -136,7 +140,11 @@ static void rna_Scene_update_tagged(Scene *scene, Main *bmain) scene_layer = scene_layer->next) { Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, scene_layer, true); - BKE_scene_graph_update_tagged(bmain->eval_ctx, depsgraph, bmain, scene); + BKE_scene_graph_update_tagged(bmain->eval_ctx, + depsgraph, + bmain, + scene, + scene_layer); } #ifdef WITH_PYTHON |