diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-06-11 16:19:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-06-11 16:19:32 +0300 |
commit | 86d229f52c417c36fabd4e3a3151295ea7aa4a54 (patch) | |
tree | 86b58e58b0363ba56895d3849ad9fa7083f39484 | |
parent | 0767f95a63959e156c302520db7fbf480159abe0 (diff) |
Sound: Fix missing sound sequences length update on FPS change
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 54f9a52477a..16003815003 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -817,9 +817,13 @@ static void rna_Scene_camera_update(Main *bmain, Scene *UNUSED(scene_unused), Po DEG_relations_tag_update(bmain); } -static void rna_Scene_fps_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr)) +static void rna_Scene_fps_update(Main *bmain, Scene *scene, PointerRNA *UNUSED(ptr)) { DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_FPS | ID_RECALC_SEQUENCER_STRIPS); + /* NOTE: Tag via dependency graph will take care of all the updates ion the evaluated domain, + * however, changes in FPS actually modifies an original stip length, so this we take care about + * here. */ + BKE_sequencer_refresh_sound_length(bmain, scene); } static void rna_Scene_listener_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr)) |