forked from bartvdbraak/blender
Bugfix for [#22284] Blender cursor gets stuck in the timeline when scrubbing (jack transport).
This commit is contained in:
parent
7a89b679c9
commit
222da0593f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user