Fix T64143: Crash when scrubbing in the graph editor

This commit is contained in:
2019-05-04 18:53:59 +02:00
parent 7595c9ecda
commit 773691310f
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; SUBFRA = 0.0f;
/* do updates */ /* 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); 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) { if (CFRA != sc->user.framenr) {
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); 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; SUBFRA = 0.0f;
BKE_sound_seek_scene(bmain, scene); BKE_sound_update_and_seek(bmain, CTX_data_depsgraph(C));
} }
/* set the cursor value */ /* set the cursor value */

View File

@@ -3542,7 +3542,7 @@ static void change_frame_apply(bContext *C, wmOperator *op)
SUBFRA = 0.0f; SUBFRA = 0.0f;
/* do updates */ /* 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); WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene);
} }