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:
authorPeter Schlaile <peter@schlaile.de>2008-05-12 21:16:54 +0400
committerPeter Schlaile <peter@schlaile.de>2008-05-12 21:16:54 +0400
commitd2fcba7f65366440017178bcf21d4a8ad439fbcf (patch)
tree829822ac7a9e05a8880a16def5495e2ad47841c5 /source/blender/src/drawview.c
parentc471b6db74d95d1a7a3a759e1597330129e64c9e (diff)
== Ipo ==
This fixes [#11118] Record Mouse in IPO Curve Editor 2.46rc3 and adds thereby a new feature: correct audio sync to IPO mouse recording :)
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r--source/blender/src/drawview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 15b7f3dbe67..52e0d3d6f05 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -3398,12 +3398,12 @@ static float redrawtimes_fps[REDRAW_FRAME_AVERAGE];
static short redrawtime_index;
-int update_time(void)
+int update_time(int cfra)
{
static double ltime;
double time;
- if ((audiostream_pos() != CFRA)
+ if ((audiostream_pos() != cfra)
&& (G.scene->audio.flag & AUDIO_SYNC)) {
return 0;
}
@@ -3641,7 +3641,7 @@ void inner_play_anim_loop(int init, int mode)
/* make sure that swaptime passed by */
tottime -= swaptime;
- while (update_time()) {
+ while (update_time(CFRA)) {
PIL_sleep_ms(1);
}
@@ -3700,7 +3700,7 @@ int play_anim(int mode)
inner_play_prefetch_startup(mode);
- update_time();
+ update_time(CFRA);
inner_play_anim_loop(1, mode); /* 1==init */