Fix T64143: Crash when scrubbing in the graph editor
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Submodule source/tools updated: d96e3148de...3ee979c1eb
Reference in New Issue
Block a user