Fix T51792: crash calling bpy.ops.screen.animation_cancel while scrubbing.
This commit is contained in:
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)
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue