Fix T64143: Crash when scrubbing in the graph editor

This commit is contained in:
Sergey Sharybin 2019-05-04 18:53:59 +02:00
parent 7595c9ecda
commit 773691310f
Notes: blender-bot 2023-02-14 06:17:14 +01:00
Referenced by commit 2b9965122e, Sound: Revert all the recent changes to sound
Referenced by issue #64143, crash when scrubbing in the graph editor.
5 changed files with 5 additions and 5 deletions

View File

@ -971,7 +971,7 @@ static void change_frame_apply(bContext *C, wmOperator *op)
SUBFRA = 0.0f;
/* do updates */
BKE_sound_seek_scene(CTX_data_main(C), scene);
BKE_sound_update_and_seek(CTX_data_main(C), CTX_data_depsgraph(C));
WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene);
}

View File

@ -1350,7 +1350,7 @@ static int frame_jump_exec(bContext *C, wmOperator *op)
if (CFRA != sc->user.framenr) {
CFRA = sc->user.framenr;
BKE_sound_seek_scene(CTX_data_main(C), scene);
BKE_sound_update_and_seek(CTX_data_main(C), CTX_data_depsgraph(C));
WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene);
}

View File

@ -105,7 +105,7 @@ static void graphview_cursor_apply(bContext *C, wmOperator *op)
}
SUBFRA = 0.0f;
BKE_sound_seek_scene(bmain, scene);
BKE_sound_update_and_seek(bmain, CTX_data_depsgraph(C));
}
/* set the cursor value */

View File

@ -3542,7 +3542,7 @@ static void change_frame_apply(bContext *C, wmOperator *op)
SUBFRA = 0.0f;
/* do updates */
BKE_sound_seek_scene(CTX_data_main(C), scene);
BKE_sound_update_and_seek(CTX_data_main(C), CTX_data_depsgraph(C));
WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene);
}

@ -1 +1 @@
Subproject commit d96e3148deaea3eab7b5dbddfd2bffaa61ad2487
Subproject commit 3ee979c1eb0752bae62295c78e367660ae084bde