[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35196] trunk/blender/source/blender/ python/intern/bpy_rna_array.c: fix [#26227] " Sequence must have 2 items total, not -2"
Campbell Barton
ideasman42 at gmail.com
Sat Feb 26 13:26:02 CET 2011
Revision: 35196
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35196
Author: campbellbarton
Date: 2011-02-26 12:26:01 +0000 (Sat, 26 Feb 2011)
Log Message:
-----------
fix [#26227] "Sequence must have 2 items total, not -2"
Modified Paths:
--------------
trunk/blender/source/blender/python/intern/bpy_rna_array.c
Modified: trunk/blender/source/blender/python/intern/bpy_rna_array.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna_array.c 2011-02-26 11:18:36 UTC (rev 35195)
+++ trunk/blender/source/blender/python/intern/bpy_rna_array.c 2011-02-26 12:26:01 UTC (rev 35196)
@@ -137,7 +137,7 @@
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) {
More information about the Bf-blender-cvs
mailing list