Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-08-25 14:32:53 +0400
committerJoshua Leung <aligorith@gmail.com>2009-08-25 14:32:53 +0400
commit2d38d0d1e1cf8a2a62639eeb3fcbd81de6e69080 (patch)
tree94a49dd26b9ae02e47a3c1fd9362f5a91f3f6387 /source
parent01bd67bd1ac402ccb5d8e549d3b4fb8e8e7752ec (diff)
2.5 - Keying Sets Bugfix
Single-value properties in KeyingSets were not getting keyframed.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/animation/keyingsets.c6
1 files changed, 5 insertions, 1 deletions
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
*/