Audio:
[blender.git] / source / blender / editors / sound / sound_ops.c
index 72dbbd9da9a1af870c085a89d0a9c6bf5557b3a9..19cae6aa67dba936ccd27fc3fd55297ca60271db 100644 (file)
@@ -691,7 +691,7 @@ static int bake_animation_exec(bContext *C, wmOperator *UNUSED(op))
 
        update_animation_flags_exec(C, NULL);
 
-       for(cfra = scene->r.sfra; cfra <= scene->r.efra; cfra++)
+       for(cfra = scene->r.sfra > 0 ? scene->r.sfra - 1 : 0; cfra <= scene->r.efra + 1; cfra++)
        {
                scene->r.cfra = cfra;
                scene_update_for_newframe(bmain, scene, scene->lay);