diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-06-30 16:56:08 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-06-30 16:56:08 +0300 |
commit | 6bb703a9ee8dc368c17f7432485e2e863597a576 (patch) | |
tree | e13ddb8f2d5722a0d68d46a79958efd5dd8de5bd /source/blender | |
parent | 8bf9d482dacf54c72291de187676ff76845e807f (diff) |
Fix T99266: Crash when dragging file to VSE from file browser
Crash happened because sequencer data was not initialized. Ensure data
is initialized before adding strip.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_drag_drop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_drag_drop.c b/source/blender/editors/space_sequencer/sequencer_drag_drop.c index 586cdad7e74..94427009939 100644 --- a/source/blender/editors/space_sequencer/sequencer_drag_drop.c +++ b/source/blender/editors/space_sequencer/sequencer_drag_drop.c @@ -233,7 +233,7 @@ static void update_overlay_strip_poistion_data(bContext *C, const int mval[2]) coords->is_intersecting = false; Sequence dummy_seq = { .machine = coords->channel, .start = coords->start_frame, .len = coords->strip_len}; - Editing *ed = SEQ_editing_get(scene); + Editing *ed = SEQ_editing_ensure(scene); for (int i = 0; i < coords->channel_len && !coords->is_intersecting; i++) { coords->is_intersecting = SEQ_transform_test_overlap(scene, ed->seqbasep, &dummy_seq); |