diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-27 08:04:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-27 08:04:20 +0300 |
commit | 9afe662c125fec5cf62b3976bf32194838f0d740 (patch) | |
tree | 97fc847b9379eef836801dcafad0cd92e38cb371 /source/blender/python/api2_2x/MTex.c | |
parent | ed2f161c72722b90a1c4e15f998ca678b79e94b0 (diff) |
renameing datablocks was imposing a name limit on the python side.
This isnt needed because the limit is alredy being set by rename_id()
some other minor changed- use None returning maro
Diffstat (limited to 'source/blender/python/api2_2x/MTex.c')
-rw-r--r-- | source/blender/python/api2_2x/MTex.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/source/blender/python/api2_2x/MTex.c b/source/blender/python/api2_2x/MTex.c index 848d28edfa0..6e896448792 100644 --- a/source/blender/python/api2_2x/MTex.c +++ b/source/blender/python/api2_2x/MTex.c @@ -299,8 +299,7 @@ static PyObject *MTex_setTexMethod( BPy_MTex * self, PyObject * args ) if( self->mtex->tex ) self->mtex->tex->id.us++; - Py_INCREF( Py_None ); - return Py_None; + Py_RETURN_NONE; } static void MTex_dealloc( BPy_MTex * self ) @@ -327,10 +326,8 @@ static PyObject *MTex_getTex( BPy_MTex *self, void *closure ) { if( self->mtex->tex ) return Texture_CreatePyObject( self->mtex->tex ); - else { - Py_INCREF( Py_None ); - return Py_None; - } + else + Py_RETURN_NONE; } static int MTex_setTex( BPy_MTex *self, PyObject *value, void *closure) @@ -389,10 +386,8 @@ static PyObject *MTex_getObject( BPy_MTex *self, void *closure ) { if( self->mtex->object ) return Object_CreatePyObject( self->mtex->object ); - else { - Py_INCREF( Py_None ); - return Py_None; - } + else + Py_RETURN_NONE; } static int MTex_setObject( BPy_MTex *self, PyObject *value, void *closure) |