[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21305] branches/soc-2009-aligorith/source /blender/blenloader/intern/readfile.c: NLA SoC: Bugfix for Auto-Keyframing version patching

Joshua Leung aligorith at gmail.com
Thu Jul 2 05:50:20 CEST 2009


Revision: 21305
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21305
Author:   aligorith
Date:     2009-07-02 05:50:20 +0200 (Thu, 02 Jul 2009)

Log Message:
-----------
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.

Modified Paths:
--------------
    branches/soc-2009-aligorith/source/blender/blenloader/intern/readfile.c

Modified: branches/soc-2009-aligorith/source/blender/blenloader/intern/readfile.c
===================================================================
--- branches/soc-2009-aligorith/source/blender/blenloader/intern/readfile.c	2009-07-02 03:41:50 UTC (rev 21304)
+++ branches/soc-2009-aligorith/source/blender/blenloader/intern/readfile.c	2009-07-02 03:50:20 UTC (rev 21305)
@@ -9220,7 +9220,14 @@
 			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 */
 			}
 		}
 	}





More information about the Bf-blender-cvs mailing list