From 39b1e66afd9132031aad2f20e236f631264db50a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 6 Nov 2018 16:55:48 +0100 Subject: Defaults: disable AV Sync by default again, it breaks physics caching. This reverts back to the 2.79 situation. The better solution would be to make physics caching somehow simulate the skipped frames. But for now the more important thing is to have working physics. Ref T54943, T56352. --- source/blender/blenloader/intern/versioning_defaults.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 5e475b9a9e4..533623039fa 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -207,6 +207,12 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template) scene->r.cfra = 1.0f; scene->r.displaymode = R_OUTPUT_WINDOW; + /* AV Sync break physics sim caching, disable until that is fixed. */ + if (!(app_template && STREQ(app_template, "Video_Editing"))) { + scene->audio.flag &= ~AUDIO_SYNC; + scene->flag &= ~SCE_FRAME_DROP; + } + /* Don't enable compositing nodes. */ if (scene->nodetree) { ntreeFreeTree(scene->nodetree); -- cgit v1.2.3