diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-26 15:26:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-26 15:26:01 +0300 |
commit | 457aba9d1bb39ccc4cbddc8f4a9fbaf17ad40d38 (patch) | |
tree | 2e882363c4935fbd19a05caa41284866cd487968 | |
parent | 34abccc0abc5e3d982d3e7cae33cf1e6329443d0 (diff) |
fix [#26227] "Sequence must have 2 items total, not -2"
-rw-r--r-- | source/blender/python/intern/bpy_rna_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna_array.c b/source/blender/python/intern/bpy_rna_array.c index 74ce5f66cfd..4d7fe5906c9 100644 --- a/source/blender/python/intern/bpy_rna_array.c +++ b/source/blender/python/intern/bpy_rna_array.c @@ -137,7 +137,7 @@ static int validate_array_length(PyObject *rvalue, PointerRNA *ptr, PropertyRNA int tot, totdim, len; totdim= RNA_property_array_dimension(ptr, prop, dimsize); - tot= count_items(rvalue, totdim); + tot= count_items(rvalue, totdim - lvalue_dim); if ((RNA_property_flag(prop) & PROP_DYNAMIC) && lvalue_dim == 0) { if (RNA_property_array_length(ptr, prop) != tot) { |