diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-08-02 18:52:40 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-08-02 18:52:40 +0300 |
commit | 97b226ac51188ce1f4ab8bee7820c7dd296c7012 (patch) | |
tree | a039c1723f9c5665ac000d75dc9be43e32ac5046 /source/blender/sequencer | |
parent | d3eef4d22a021bf71c5e6cac492139cab397e4d2 (diff) |
Fix T100049: Crash when render finishes
Caused by NULL dereference of `Editing` before NULL check was done.
Diffstat (limited to 'source/blender/sequencer')
-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 2026e322763..e6c641a5532 100644 --- a/source/blender/sequencer/intern/utils.c +++ b/source/blender/sequencer/intern/utils.c @@ -338,14 +338,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(scene, seq, frame)) { |