Merge branch 'master' into blender2.8
[blender.git] / source / blender / makesrna / intern / rna_sequencer.c
index f628c5f14d9016360c7fa1d7c682c5eb619693c8..520a1c2f730dc9b40c7b6d8441f56644292ff077 100644 (file)
@@ -725,8 +725,9 @@ static void rna_Sequence_filepath_update(Main *bmain, Scene *UNUSED(scene), Poin
 static void rna_Sequence_sound_update(Main *bmain, Scene *scene, PointerRNA *ptr)
 {
        Sequence *seq = (Sequence *) ptr->data;
-
-       BKE_sound_update_scene_sound(seq->scene_sound, seq->sound);
+       if (seq->sound != NULL) {
+               BKE_sound_update_scene_sound(seq->scene_sound, seq->sound);
+       }
        rna_Sequence_update(bmain, scene, ptr);
 }