diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-08-02 18:52:40 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2022-08-02 21:11:23 +0300 |
commit | cd800656865e6feed6a4f72d6bf5b33a67cbad40 (patch) | |
tree | 06d06a5683babe57f30ceafbe1eb255df3dba451 | |
parent | 80d193c51b460cff302ffff66efb4530bef6b6fd (diff) |
Fix T100049: Crash when render finishes
Caused by NULL dereference of `Editing` before NULL check was done.
-rw-r--r-- | source/blender/sequencer/intern/utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/sequencer/intern/utils.c b/source/blender/sequencer/intern/utils.c index 0cf47420d8f..751cf680651 100644 --- a/source/blender/sequencer/intern/utils.c +++ b/source/blender/sequencer/intern/utils.c @@ -384,14 +384,15 @@ void seq_open_anim_file(Scene *scene, Sequence *seq, bool openfile) const Sequence *SEQ_get_topmost_sequence(const Scene *scene, int frame) { Editing *ed = scene->ed; - ListBase *channels = SEQ_channels_displayed_get(ed); - const Sequence *seq, *best_seq = NULL; - int best_machine = -1; if (!ed) { return NULL; } + ListBase *channels = SEQ_channels_displayed_get(ed); + const Sequence *seq, *best_seq = NULL; + int best_machine = -1; + for (seq = ed->seqbasep->first; seq; seq = seq->next) { if (SEQ_render_is_muted(channels, seq) || !SEQ_time_strip_intersects_frame(seq, frame)) { continue; |