NLA SoC: Bugfix for Auto-Keyframing version patching

When auto-keying is enabled, the insertion mode is no-longer blank. The version patching code now takes this into account, but the conversion doesn't work for existing .b25.blend defaults files though.
This commit is contained in:
Joshua Leung 2009-07-02 03:50:20 +00:00
parent b1a106dd49
commit 3373850e95
1 changed files with 7 additions and 0 deletions

View File

@ -9220,7 +9220,14 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
if(ts->normalsize == 0.0) {
ts->normalsize= 0.1f;
ts->selectmode= SCE_SELECT_VERTEX;
/* autokeying - setting should be taken from the user-prefs
* but the userprefs version may not have correct flags set
* (i.e. will result in blank box when enabled)
*/
ts->autokey_mode= U.autokey_mode;
if (ts->autokey_mode == 0)
ts->autokey_mode= 2; /* 'add/replace' but not on */
}
}
}