Fix crash when dragging video into VSE preview area

Caused by NULL dereference, because `Editing` data were not initialized.
Ensure data are initialized prior to using them.
This commit is contained in:
Richard Antalik
2022-11-29 19:03:40 +01:00
parent 01f4b9b32d
commit 412fdc9698

View File

@@ -285,7 +285,7 @@ static void sequencer_drop_copy(bContext *C, wmDrag *drag, wmDropBox *drop)
/* We are dropped inside the preview region. Put the strip on top of the
* current displayed frame. */
Scene *scene = CTX_data_scene(C);
Editing *ed = SEQ_editing_get(scene);
Editing *ed = SEQ_editing_ensure(scene);
ListBase *seqbase = SEQ_active_seqbase_get(ed);
ListBase *channels = SEQ_channels_displayed_get(ed);
SpaceSeq *sseq = CTX_wm_space_seq(C);