Revision: 24676
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24676
Author:   campbellbarton
Date:     2009-11-19 12:56:13 +0100 (Thu, 19 Nov 2009)

Log Message:
-----------
correcting ID property list was incorrect on porting

Modified Paths:
--------------
    trunk/blender/source/blender/python/generic/IDProp.c

Modified: trunk/blender/source/blender/python/generic/IDProp.c
===================================================================
--- trunk/blender/source/blender/python/generic/IDProp.c        2009-11-19 
11:53:02 UTC (rev 24675)
+++ trunk/blender/source/blender/python/generic/IDProp.c        2009-11-19 
11:56:13 UTC (rev 24676)
@@ -480,18 +480,18 @@
 /* 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)


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to