Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-09-11 18:36:52 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-09-11 18:47:58 +0300
commit30aa67d5d57b3ee4a1f72bfdbb5ee53600ce7fcd (patch)
treeb9a2d1e7a478d8f28904466158c5de2db6c3013a /source
parentd84d49280bde12ec1f3dc20410eceaf135d96a09 (diff)
Fix T69558: crash in BKE_scene_update_sound for a soundstrip without
linked sound Crash could be triggered by just adding any object to the scene. Reviewers: sergey Maniphest Tasks: T69558 Differential Revision: https://developer.blender.org/D5764
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index dca6f05e0de..14096335626 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -4933,7 +4933,7 @@ static bool sequencer_refresh_sound_length_recursive(Main *bmain, Scene *scene,
changed = true;
}
}
- else if (seq->type == SEQ_TYPE_SOUND_RAM) {
+ else if (seq->type == SEQ_TYPE_SOUND_RAM && seq->sound) {
const float length = BKE_sound_get_length(bmain, seq->sound);
int old = seq->len;
float fac;