[Bf-blender-cvs] [90738e14414] blender2.8: Depsgraph: Use explicit graph API for audio bake

Sergey Sharybin noreply at git.blender.org
Mon Nov 6 12:40:19 CET 2017


Commit: 90738e14414ce979146fd20d2a31a3c5e5eebce9
Author: Sergey Sharybin
Date:   Fri Nov 3 17:59:15 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB90738e14414ce979146fd20d2a31a3c5e5eebce9

Depsgraph: Use explicit graph API for audio bake

===================================================================

M	source/blender/editors/sound/sound_ops.c

===================================================================

diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c
index 3a753748d0f..0d6e0cf8e89 100644
--- a/source/blender/editors/sound/sound_ops.c
+++ b/source/blender/editors/sound/sound_ops.c
@@ -311,6 +311,7 @@ static int sound_bake_animation_exec(bContext *C, wmOperator *UNUSED(op))
 {
 	Main *bmain = CTX_data_main(C);
 	Scene *scene = CTX_data_scene(C);
+	struct Depsgraph *depsgraph = CTX_data_depsgraph(C);
 	int oldfra = scene->r.cfra;
 	int cfra;
 
@@ -318,11 +319,11 @@ static int sound_bake_animation_exec(bContext *C, wmOperator *UNUSED(op))
 
 	for (cfra = (scene->r.sfra > 0) ? (scene->r.sfra - 1) : 0; cfra <= scene->r.efra + 1; cfra++) {
 		scene->r.cfra = cfra;
-		BKE_scene_update_for_newframe(bmain->eval_ctx, bmain, scene);
+		BKE_scene_graph_update_for_newframe(bmain->eval_ctx, depsgraph, bmain, scene);
 	}
 
 	scene->r.cfra = oldfra;
-	BKE_scene_update_for_newframe(bmain->eval_ctx, bmain, scene);
+	BKE_scene_graph_update_for_newframe(bmain->eval_ctx, depsgraph, bmain, scene);
 
 	return OPERATOR_FINISHED;
 }



More information about the Bf-blender-cvs mailing list