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
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-06-17 13:54:56 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-06-17 13:55:24 +0300
commitb50de0f8b75b9f7af62e09528635f6a9fdbb07cd (patch)
treec61b90aa523413997804987e1dc1618fd21e8d37 /source/blender/blenkernel/intern/sound.c
parent96e9caba6ef190b9f24f212d444ea60ec6defc4a (diff)
Fix T65651: Crash when changing audio strip source file
Diffstat (limited to 'source/blender/blenkernel/intern/sound.c')
-rw-r--r--source/blender/blenkernel/intern/sound.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 007614b4b95..ad26314e877 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -1328,5 +1328,9 @@ void BKE_sound_jack_scene_update(Scene *scene, int mode, float time)
void BKE_sound_evaluate(Depsgraph *depsgraph, Main *bmain, bSound *sound)
{
DEG_debug_print_eval(depsgraph, __func__, sound->id.name, sound);
+ if (sound->id.recalc & ID_RECALC_AUDIO) {
+ BKE_sound_load(bmain, sound);
+ return;
+ }
BKE_sound_ensure_loaded(bmain, sound);
}