diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-28 15:04:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-28 16:24:56 +0300 |
commit | 9d6bd665e31badbc98ac4c86a4af4f1211d34587 (patch) | |
tree | ee8464e7afecec1888e7b081d0fc1198decfaa02 /source/blender/blenkernel/intern/scene.c | |
parent | db2a603f6ef8ffc6f0b72fe108710d88ccd2f85d (diff) |
Depsgraph: Wrap context used for editors update callback into a structure
This way we can extend it much easier.
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index a345a273cac..d2218adb120 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -1541,7 +1541,7 @@ void BKE_scene_graph_update_tagged(EvaluationContext *eval_ctx, /* Update sound system animation (TODO, move to depsgraph). */ BKE_sound_update_scene(bmain, scene); /* Inform editors about possible changes. */ - DEG_ids_check_recalc(bmain, scene, false); + DEG_ids_check_recalc(bmain, scene, view_layer, false); /* Clear recalc flags. */ DEG_ids_clear_recalc(bmain); } @@ -1588,7 +1588,7 @@ void BKE_scene_graph_update_for_newframe(EvaluationContext *eval_ctx, /* Notify editors and python about recalc. */ BLI_callback_exec(bmain, &scene->id, BLI_CB_EVT_FRAME_CHANGE_POST); /* Inform editors about possible changes. */ - DEG_ids_check_recalc(bmain, scene, true); + DEG_ids_check_recalc(bmain, scene, view_layer, true); /* clear recalc flags */ DEG_ids_clear_recalc(bmain); } |