Fix T51792: crash calling bpy.ops.screen.animation_cancel while scrubbing.

This commit is contained in:
Brecht Van Lommel 2017-06-24 18:02:30 +02:00
parent c2d285f0ff
commit f51438aea0
Notes: blender-bot 2023-02-14 06:57:56 +01:00
Referenced by issue #51792, Select the keyframe by mouse click, but seg fault, long time old problem  (segf included)
1 changed files with 1 additions and 1 deletions

View File

@ -3756,7 +3756,7 @@ static int screen_animation_cancel_exec(bContext *C, wmOperator *op)
bScreen *screen = ED_screen_animation_playing(CTX_wm_manager(C));
if (screen) {
if (RNA_boolean_get(op->ptr, "restore_frame")) {
if (RNA_boolean_get(op->ptr, "restore_frame") && screen->animtimer) {
ScreenAnimData *sad = screen->animtimer->customdata;
Scene *scene = CTX_data_scene(C);