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-11 16:19:32 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-06-11 16:19:32 +0300
commit86d229f52c417c36fabd4e3a3151295ea7aa4a54 (patch)
tree86b58e58b0363ba56895d3849ad9fa7083f39484 /source/blender/makesrna/intern/rna_scene.c
parent0767f95a63959e156c302520db7fbf480159abe0 (diff)
Sound: Fix missing sound sequences length update on FPS change
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c6
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))