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:
Diffstat (limited to 'source/blender/python/api2_2x/Ipo.c')
-rw-r--r--source/blender/python/api2_2x/Ipo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c
index 37098400216..8f6e4061976 100644
--- a/source/blender/python/api2_2x/Ipo.c
+++ b/source/blender/python/api2_2x/Ipo.c
@@ -1255,7 +1255,7 @@ void generate_curveconsts( PyObject* module )
static PyObject *Ipo_getChannel( BPy_Ipo * self )
{
if( self->mtex != -1 )
- return Py_BuildValue( "h", self->mtex );
+ return PyInt_FromLong( (long)self->mtex );
Py_RETURN_NONE;
}