diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2006-04-24 19:09:07 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2006-04-24 19:09:07 +0400 |
commit | 87949e5c670e8b761ab6b86c0dff2fa5feb4295e (patch) | |
tree | 795ba502cfdfec00853e9b6cab146ca0ccb9332b /source/blender/python/api2_2x/Group.c | |
parent | 4bfb0e30ec1ac6b0188b1abde14af28c9198fff4 (diff) |
warnings cleanup for the python project on windows
Diffstat (limited to 'source/blender/python/api2_2x/Group.c')
-rwxr-xr-x | source/blender/python/api2_2x/Group.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Group.c b/source/blender/python/api2_2x/Group.c index 83e276cc872..075730432a7 100755 --- a/source/blender/python/api2_2x/Group.c +++ b/source/blender/python/api2_2x/Group.c @@ -125,12 +125,14 @@ static int M_Group_setObjects( BPy_Group * self, PyObject * args ) "expected a list of objects, This iterator cannot be used." ); } free_group(group); /* unlink all objects from this group, keep the group */ - while ((item = PyIter_Next(iterator))) { + item = PyIter_Next(iterator); + while (item) { if ( PyObject_TypeCheck(item, &Object_Type) ) { blen_ob= ((BPy_Object *)item)->object; add_to_group_wraper(group, blen_ob); } Py_DECREF(item); + item = PyIter_Next(iterator); } Py_DECREF(iterator); |