Fix T52890: Crash unlinking sequencer sound

This commit is contained in:
Campbell Barton 2017-09-25 10:28:17 +10:00 committed by Bastien Montagne
parent b969f7eb55
commit eaba111bd5
1 changed files with 3 additions and 2 deletions

View 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);
}