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:
authorCampbell Barton <ideasman42@gmail.com>2007-06-29 12:59:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-06-29 12:59:26 +0400
commite192e7e02452c70511f688582d8d95d0a6267ee5 (patch)
tree75698ba122c3820668888ab38958e5c7e5cbb591 /source/blender/python/api2_2x/World.c
parent684869fd74a3a908a5df5802f440bfa823f6c802 (diff)
remove unneeded checks from the python API
Diffstat (limited to 'source/blender/python/api2_2x/World.c')
-rw-r--r--source/blender/python/api2_2x/World.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c
index aa956e15ebb..fff1a1e6bab 100644
--- a/source/blender/python/api2_2x/World.c
+++ b/source/blender/python/api2_2x/World.c
@@ -561,13 +561,7 @@ static PyObject *World_clearIpo( BPy_World * self )
static PyObject *World_getSkytype( BPy_World * self )
{
- PyObject *attr = PyInt_FromLong( ( long ) self->world->skytype );
-
- if( attr )
- return attr;
-
- return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
- "couldn't get World.skytype attribute" ) );
+ return PyInt_FromLong( ( long ) self->world->skytype );
}
@@ -600,13 +594,7 @@ static PyObject *World_oldsetSkytype( BPy_World * self, PyObject * args )
static PyObject *World_getMode( BPy_World * self )
{
- PyObject *attr = PyInt_FromLong( ( long ) self->world->mode );
-
- if( attr )
- return attr;
-
- return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
- "couldn't get World.mode attribute" ) );
+ return PyInt_FromLong( ( long ) self->world->mode );
}
@@ -640,13 +628,7 @@ static PyObject *World_oldsetMode( BPy_World * self, PyObject * args )
static PyObject *World_getMistype( BPy_World * self )
{
- PyObject *attr = PyInt_FromLong( ( long ) self->world->mistype );
-
- if( attr )
- return attr;
-
- return ( EXPP_ReturnPyObjError( PyExc_RuntimeError,
- "couldn't get World.mistype attribute" ) );
+ return PyInt_FromLong( ( long ) self->world->mistype );
}