Bugfix for [#22284] Blender cursor gets stuck in the timeline when scrubbing (jack transport).

This commit is contained in:
Joerg Mueller 2010-07-13 11:50:04 +00:00
parent 7a89b679c9
commit 222da0593f
2 changed files with 2 additions and 2 deletions

@ -2448,7 +2448,7 @@ static int screen_animation_step(bContext *C, wmOperator *op, wmEvent *event)
else sync= (scene->flag & SCE_FRAME_DROP);
if((scene->audio.flag & AUDIO_SYNC) && !(sad->flag & ANIMPLAY_FLAG_REVERSE) && finite(time = sound_sync_scene(scene)))
scene->r.cfra = floor(time * FPS);
scene->r.cfra = round(time * FPS);
else
{
if(sync) {

@ -1598,7 +1598,7 @@ void wm_event_do_handlers(bContext *C)
}
if(playing == 0) {
int ncfra = floor(sound_sync_scene(scene) * FPS);
int ncfra = round(sound_sync_scene(scene) * FPS);
if(ncfra != scene->r.cfra) {
scene->r.cfra = ncfra;
ED_update_for_newframe(C, 1);