diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-08 16:57:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-08 16:57:33 +0300 |
commit | 9cb1810551a257043f1f6db7e320b690ff4391f4 (patch) | |
tree | 86dd06e5956a7894a9a9d7677e232c2d83b370f1 /source/blender/editors | |
parent | 8066784ac232e4c527a77d9cc7b7328e8407e21b (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/editors')
-rw-r--r-- | source/blender/editors/sound/sound_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c index f4191f87df6..0241a2fbe88 100644 --- a/source/blender/editors/sound/sound_ops.c +++ b/source/blender/editors/sound/sound_ops.c @@ -104,7 +104,7 @@ static int sound_open_exec(bContext *C, wmOperator *op) } if (RNA_boolean_get(op->ptr, "cache")) { - BKE_sound_cache(sound); + sound->flags |= SOUND_FLAGS_CACHING; } /* hook into UI */ |