diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_sound.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_sound.c | 7 |
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) |