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/Ipocurve.c
parent684869fd74a3a908a5df5802f440bfa823f6c802 (diff)
remove unneeded checks from the python API
Diffstat (limited to 'source/blender/python/api2_2x/Ipocurve.c')
-rw-r--r--source/blender/python/api2_2x/Ipocurve.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/source/blender/python/api2_2x/Ipocurve.c b/source/blender/python/api2_2x/Ipocurve.c
index bbc8e8ffc4e..2ce7e91e6c8 100644
--- a/source/blender/python/api2_2x/Ipocurve.c
+++ b/source/blender/python/api2_2x/Ipocurve.c
@@ -998,13 +998,7 @@ PyObject *IpoCurve_Init( void )
static PyObject *IpoCurve_newgetInterp( C_IpoCurve * self )
{
- PyObject *attr = PyInt_FromLong( self->ipocurve->ipo );
-
- if( attr )
- return attr;
-
- return EXPP_ReturnPyObjError( PyExc_RuntimeError,
- "couldn't get IpoCurve.interp atrtribute" );
+ return PyInt_FromLong( self->ipocurve->ipo );
}
static int IpoCurve_newsetInterp( C_IpoCurve * self, PyObject * value )
@@ -1015,13 +1009,7 @@ static int IpoCurve_newsetInterp( C_IpoCurve * self, PyObject * value )
static PyObject *IpoCurve_newgetExtend( C_IpoCurve * self )
{
- PyObject *attr = PyInt_FromLong( self->ipocurve->extrap );
-
- if( attr )
- return attr;
-
- return EXPP_ReturnPyObjError( PyExc_RuntimeError,
- "couldn't get IpoCurve.extend atrtribute" );
+ return PyInt_FromLong( self->ipocurve->extrap );
}
static int IpoCurve_newsetExtend( C_IpoCurve * self, PyObject * value )