[Bf-blender-cvs] [86d229f52c4] master: Sound: Fix missing sound sequences length update on FPS change
Sergey Sharybin
noreply at git.blender.org
Tue Jun 11 15:19:53 CEST 2019
Commit: 86d229f52c417c36fabd4e3a3151295ea7aa4a54
Author: Sergey Sharybin
Date: Tue Jun 11 15:19:32 2019 +0200
Branches: master
https://developer.blender.org/rB86d229f52c417c36fabd4e3a3151295ea7aa4a54
Sound: Fix missing sound sequences length update on FPS change
===================================================================
M source/blender/makesrna/intern/rna_scene.c
===================================================================
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))
More information about the Bf-blender-cvs
mailing list