2.5 - Keying Sets Bugfix

Single-value properties in KeyingSets were not getting keyframed.
This commit is contained in:
Joshua Leung
2009-08-25 10:32:53 +00:00
parent 01bd67bd1a
commit 2d38d0d1e1

View File

@@ -916,7 +916,7 @@ int modify_keyframes (bContext *C, ListBase *dsources, bAction *act, KeyingSet *
* 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 @@ int modify_keyframes (bContext *C, ListBase *dsources, bAction *act, KeyingSet *
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
*/