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/makesrna/intern/rna_sound.c
parent96e9caba6ef190b9f24f212d444ea60ec6defc4a (diff)
Fix T65651: Crash when changing audio strip source file
Diffstat (limited to 'source/blender/makesrna/intern/rna_sound.c')
-rw-r--r--source/blender/makesrna/intern/rna_sound.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_sound.c b/source/blender/makesrna/intern/rna_sound.c
index 7437a24f65e..e4b120261c6 100644
--- a/source/blender/makesrna/intern/rna_sound.c
+++ b/source/blender/makesrna/intern/rna_sound.c
@@ -32,9 +32,12 @@
# include "BKE_context.h"
# include "BKE_sequencer.h"
-static void rna_Sound_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr)
+# include "DEG_depsgraph.h"
+
+static void rna_Sound_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
{
- BKE_sound_load(bmain, (bSound *)ptr->data);
+ bSound *sound = (bSound *)ptr->data;
+ DEG_id_tag_update(&sound->id, ID_RECALC_AUDIO);
}
static bool rna_Sound_caching_get(PointerRNA *ptr)