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:
authorCampbell Barton <ideasman42@gmail.com>2009-11-17 17:10:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-17 17:10:29 +0300
commit733b77063c11919f1c111254b02294558e7ef016 (patch)
tree9cf0dce03e6868770f1771ec2a062915d9aeb5f3 /source/blender/editors/animation/drivers.c
parent64104524cc4e1677deed601c265c992fa494423c (diff)
was trying to add one too many drivers when inserting them on all items on an array (own error)
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r--source/blender/editors/animation/drivers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index ac2eec6fd21..0c2fa0878be 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -160,7 +160,7 @@ short ANIM_add_driver (ID *id, const char rna_path[], int array_index, short fla
/* key entire array convenience method */
if (array_index == -1) {
array_index= 0;
- array_index_max= RNA_property_array_length(&ptr, prop) + 1;
+ array_index_max= RNA_property_array_length(&ptr, prop);
}
/* will only loop once unless the array index was -1 */