diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-06 18:55:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-06 19:52:27 +0300 |
commit | 39b1e66afd9132031aad2f20e236f631264db50a (patch) | |
tree | 5c0666aa598c053f180f492a4bddb871e7386e4c /source | |
parent | b04c856122adbe6842a5a85d3b5b33ecda75c01a (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |