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
diff options
context:
space:
mode:
-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
*/