Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2006-04-24 19:09:07 +0400
committerJoseph Gilbert <ascotan@gmail.com>2006-04-24 19:09:07 +0400
commit87949e5c670e8b761ab6b86c0dff2fa5feb4295e (patch)
tree795ba502cfdfec00853e9b6cab146ca0ccb9332b /source/blender/python/api2_2x/Group.c
parent4bfb0e30ec1ac6b0188b1abde14af28c9198fff4 (diff)
warnings cleanup for the python project on windows
Diffstat (limited to 'source/blender/python/api2_2x/Group.c')
-rwxr-xr-xsource/blender/python/api2_2x/Group.c4
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);