diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-10-06 20:48:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-10-06 20:48:28 +0400 |
commit | dda63a9dde8600f85e43bc4d654cbe80d07cab6e (patch) | |
tree | 76010b4123957872bba0dbcd399da90e590ddfff /source/blender/python/api2_2x/Group.c | |
parent | aaaae785276e287d9a30a005d14af61524845d72 (diff) |
added comparison function to many python types so you can do == and =!
Diffstat (limited to 'source/blender/python/api2_2x/Group.c')
-rwxr-xr-x | source/blender/python/api2_2x/Group.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/Group.c b/source/blender/python/api2_2x/Group.c index 805381e1912..7c5e230f9ce 100755 --- a/source/blender/python/api2_2x/Group.c +++ b/source/blender/python/api2_2x/Group.c @@ -491,8 +491,7 @@ PyObject *M_Group_Unlink( PyObject * self, PyObject * args ) unlink_group(group); group->id.us= 0; free_libblock( &G.main->group, group ); - Py_INCREF( Py_None ); - return Py_None; + Py_RETURN_NONE; } @@ -527,7 +526,7 @@ PyObject *Group_CreatePyObject( struct Group * grp ) BPy_Group *pygrp; if( !grp ) - return EXPP_incr_ret( Py_None ); + Py_RETURN_NONE; pygrp = ( BPy_Group * ) PyObject_NEW( BPy_Group, &Group_Type ); @@ -746,7 +745,7 @@ static PyObject *GroupObSeq_add( BPy_GroupObSeq * self, PyObject *args ) add_to_group_wraper(self->bpygroup->group, blen_ob); /* this checks so as not to add the object into the group twice*/ - return EXPP_incr_ret( Py_None ); + Py_RETURN_NONE; } @@ -776,7 +775,7 @@ static PyObject *GroupObSeq_remove( BPy_GroupObSeq * self, PyObject *args ) if (base) base->flag &= ~OB_FROMGROUP; } - return EXPP_incr_ret( Py_None ); + Py_RETURN_NONE; } |