Bugfix #23439 and #23453: Auto Keying not working in newly created Scenes.

The UserPrefs Default was never getting initialised correctly, so new scenes would not get the default AutoKeying mode set correctly ("add but off"). I remembered fixing some problems like this before, but it seems that fix only fixed old files vs the user-prefs for new scenes.
This commit is contained in:
Joshua Leung 2010-08-25 04:48:42 +00:00
parent 4b40d73bfb
commit a7e86bc30d

@ -998,6 +998,10 @@ void init_userdef_do_versions(void)
strcpy(U.tempdir, tmp?tmp:"/tmp/");
}
if (U.autokey_mode == 0) {
/* 'add/replace' but not on */
U.autokey_mode = 2;
}
if (U.savetime <= 0) {
U.savetime = 1;
// XXX error("startup.blend is buggy, please consider removing it.\n");