Fix errors in sequencer channel headers

Failing constraint test uncovered crashes on NULL dereference and
missing channels initialization in `SEQ_editing_ensure()`.
This commit is contained in:
2022-04-04 16:27:37 +02:00
parent e7f4aa8f0c
commit e4289f2360
3 changed files with 19 additions and 10 deletions

View File

@@ -245,6 +245,8 @@ Editing *SEQ_editing_ensure(Scene *scene)
ed->cache = NULL;
ed->cache_flag = SEQ_CACHE_STORE_FINAL_OUT;
ed->cache_flag |= SEQ_CACHE_STORE_RAW;
ed->displayed_channels = &ed->channels;
SEQ_channels_ensure(ed->displayed_channels);
}
return scene->ed;