diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-06-26 13:58:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-06-26 14:00:18 +0300 |
commit | b6cf4a715bf0031d429c81c1c9a7210dc1c9388a (patch) | |
tree | d91428a5bd40276f85f593b1552882b87e8c4c39 /source/blender/makesrna/intern/rna_scene.c | |
parent | 5b3530e4805f35202eeab57253c02b144f838134 (diff) |
Fix missing volume update via scene strip's settings
This is a part of T66117.
The entire sequencer+3d sound was never reliable, so this is as much as i can
fix currently.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 3fe8e9ba382..b47454ecd84 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -831,9 +831,10 @@ static void rna_Scene_listener_update(Main *UNUSED(bmain), Scene *scene, Pointer DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_LISTENER); } -static void rna_Scene_volume_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr)) +static void rna_Scene_volume_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) { - DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_VOLUME); + Scene *scene = (Scene *)ptr->id.data; + DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_VOLUME | ID_RECALC_SEQUENCER_STRIPS); } static const char *rna_Scene_statistics_string_get(Scene *scene, |