[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22763] branches/blender2.5/blender/source /blender/editors/animation/keyingsets.c: 2.5 - Keying Sets Bugfix

Joshua Leung aligorith at gmail.com
Tue Aug 25 12:32:53 CEST 2009


Revision: 22763
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22763
Author:   aligorith
Date:     2009-08-25 12:32:53 +0200 (Tue, 25 Aug 2009)

Log Message:
-----------
2.5 - Keying Sets Bugfix

Single-value properties in KeyingSets were not getting keyframed. 

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/animation/keyingsets.c

Modified: branches/blender2.5/blender/source/blender/editors/animation/keyingsets.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/animation/keyingsets.c	2009-08-25 10:21:10 UTC (rev 22762)
+++ branches/blender2.5/blender/source/blender/editors/animation/keyingsets.c	2009-08-25 10:32:53 UTC (rev 22763)
@@ -916,7 +916,7 @@
 			 * normal non-array entries get keyframed correctly
 			 */
 			i= ksp->array_index;
-			arraylen= i+1;
+			arraylen= i;
 			
 			/* get length of array if whole array option is enabled */
 			if (ksp->flag & KSP_FLAG_WHOLE_ARRAY) {
@@ -928,6 +928,10 @@
 					arraylen= RNA_property_array_length(prop);
 			}
 			
+			/* we should do at least one step */
+			if (arraylen == i)
+				arraylen++;
+			
 			/* for each possible index, perform operation 
 			 *	- assume that arraylen is greater than index
 			 */





More information about the Bf-blender-cvs mailing list