diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-08-25 08:48:42 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-08-25 08:48:42 +0400 |
commit | a7e86bc30ddf3e455bfccf97b51ebe0a0cec59f3 (patch) | |
tree | 682c1b5a5a233b9946996a560ad04223e1af6670 /source/blender/editors | |
parent | 4b40d73bfbd5ff67db727746b992a66c910a9cac (diff) |
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/resources.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 84621e7c6e2..c250cdb1284 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -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"); |