diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-19 14:56:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-19 14:56:13 +0300 |
commit | 3b4c9d9699efe5bdfb0cc2ce8f4518a5c19c60f2 (patch) | |
tree | 3a0012f79ba739ba3ad991518180c222eef621b3 /source/blender/python/generic | |
parent | b895b2e48f3910c2ff4b971ce57fc4fe48e2c24a (diff) |
correcting ID property list was incorrect on porting
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r-- | source/blender/python/generic/IDProp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/generic/IDProp.c b/source/blender/python/generic/IDProp.c index 2339350823d..3af2fece258 100644 --- a/source/blender/python/generic/IDProp.c +++ b/source/blender/python/generic/IDProp.c @@ -480,18 +480,18 @@ static PyObject *BPy_IDGroup_IterItems(BPy_IDProperty *self) /* utility function */ static void BPy_IDGroup_CorrectListLen(IDProperty *prop, PyObject *seq, int len) { - int i, j; + int j; printf("ID Property Error found and corrected in BPy_IDGroup_GetKeys/Values/Items!\n"); /*fill rest of list with valid references to None*/ - for (j=i; j<prop->len; j++) { + for (j=len; j<prop->len; j++) { Py_INCREF(Py_None); PyList_SET_ITEM(seq, j, Py_None); } /*set correct group length*/ - prop->len = i; + prop->len = len; } PyObject *BPy_Wrap_GetKeys(IDProperty *prop) |