diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-11-17 07:40:25 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-11-17 07:40:25 +0300 |
commit | 6e6123b40f388a62dcb2268f1a87bee4410f995d (patch) | |
tree | 332b07d7e75b44b4d33f944497d6cc52376f156d /source/blender/editors/animation | |
parent | 9bdf3fa5f01b01bf9461a3ba6707d231bbbc5e9e (diff) |
Fix T93080: Crash on scrubbing with snapping
Sequencer wasn't initialized, snapping crashed on NULL dereference.
Add Null check.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c index 8232df968ed..1e60a129535 100644 --- a/source/blender/editors/animation/anim_ops.c +++ b/source/blender/editors/animation/anim_ops.c @@ -149,7 +149,7 @@ static void change_frame_apply(bContext *C, wmOperator *op) bool do_snap = RNA_boolean_get(op->ptr, "snap"); if (do_snap) { - if (CTX_wm_space_seq(C)) { + if (CTX_wm_space_seq(C) && SEQ_editing_get(scene) != NULL) { frame = seq_frame_apply_snap(C, scene, frame); } else { |