Fix crash in sequencer after recent audio changes master
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 17 Jun 2019 13:23:24 +0000 (15:23 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 17 Jun 2019 13:23:39 +0000 (15:23 +0200)
source/blender/blenkernel/intern/scene.c

index a250b00..09e05a9 100644 (file)
@@ -2468,8 +2468,10 @@ void BKE_scene_eval_sequencer_sequences(Depsgraph *depsgraph, Scene *scene)
       }
     }
     if (seq->scene_sound) {
-      if (scene->id.recalc & ID_RECALC_AUDIO || seq->sound->id.recalc & ID_RECALC_AUDIO) {
-        BKE_sound_update_scene_sound(seq->scene_sound, seq->sound);
+      if (seq->sound != NULL) {
+        if (scene->id.recalc & ID_RECALC_AUDIO || seq->sound->id.recalc & ID_RECALC_AUDIO) {
+          BKE_sound_update_scene_sound(seq->scene_sound, seq->sound);
+        }
       }
       BKE_sound_set_scene_sound_volume(
           seq->scene_sound, seq->volume, (seq->flag & SEQ_AUDIO_VOLUME_ANIMATED) != 0);