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
                         */


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to