Fix T93080: Crash on scrubbing with snapping
Sequencer wasn't initialized, snapping crashed on NULL dereference. Add Null check.
This commit is contained in:
parent
9bdf3fa5f0
commit
6e6123b40f
Notes:
blender-bot
2023-02-14 05:51:15 +01:00
Referenced by issue #93080, Regression: VSE Multi scene hold Ctrl change time makes crash if sequencer is empty
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue