From: Joshua Leung Date: Tue, 25 Aug 2009 10:32:53 +0000 (+0000) Subject: 2.5 - Keying Sets Bugfix X-Git-Tag: v2.50~1395^2~267 X-Git-Url: https://git.blender.org/gitweb/gitweb.cgi/blender.git/commitdiff_plain/2d38d0d1e1cf8a2a62639eeb3fcbd81de6e69080 2.5 - Keying Sets Bugfix Single-value properties in KeyingSets were not getting keyframed. --- diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index f19372069c3..d22fe763ad4 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -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 */