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-07-08 16:57:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-07-08 16:57:33 +0300
commit9cb1810551a257043f1f6db7e320b690ff4391f4 (patch)
tree86dd06e5956a7894a9a9d7677e232c2d83b370f1 /source/blender/blenkernel/intern/sound.c
parent8066784ac232e4c527a77d9cc7b7328e8407e21b (diff)
Fix T66431: SE - Audio Caching crash
Moved the caching code from direct calls in DNA to dependency graph. In fact, not much was needed to be done apart form removing the direct cache updates. The rest seemed to work fine. Possible to avoid full sound file re-load, but doesn't seem this is causing any issues.
Diffstat (limited to 'source/blender/blenkernel/intern/sound.c')
-rw-r--r--source/blender/blenkernel/intern/sound.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 1722b888d28..6d782726e07 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -389,7 +389,6 @@ void BKE_sound_cache(bSound *sound)
{
sound_verify_evaluated_id(&sound->id);
- sound->flags |= SOUND_FLAGS_CACHING;
if (sound->cache) {
AUD_Sound_free(sound->cache);
}
@@ -405,7 +404,6 @@ void BKE_sound_cache(bSound *sound)
void BKE_sound_delete_cache(bSound *sound)
{
- sound->flags &= ~SOUND_FLAGS_CACHING;
if (sound->cache) {
AUD_Sound_free(sound->cache);
sound->cache = NULL;