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-07-01 09:41:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-07-01 09:41:23 +0400
commit39e4dc6202f242fb0676552903d5fe0960eae154 (patch)
tree525af303ad0a408aa919af021d3b64b2bde16bfc /source/blender/python/api2_2x/BezTriple.c
parent676043c31461c5a978de209a23b0f4e37d201403 (diff)
replace PyInt_CheckExact with PyInt_Check, same for floats and strings so subclass and C/subtypes work.
was reported as a bug a while ago.
Diffstat (limited to 'source/blender/python/api2_2x/BezTriple.c')
-rw-r--r--source/blender/python/api2_2x/BezTriple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/BezTriple.c b/source/blender/python/api2_2x/BezTriple.c
index aabc33e6f95..200f8ceb34e 100644
--- a/source/blender/python/api2_2x/BezTriple.c
+++ b/source/blender/python/api2_2x/BezTriple.c
@@ -413,7 +413,7 @@ static int BezTriple_setHandles( BPy_BezTriple * self, PyObject *args )
ob1 = PySequence_ITEM( args, 0 );
ob2 = PySequence_ITEM( args, 1 );
- if( !PyInt_CheckExact( ob1 ) || !PyInt_CheckExact( ob2 ) ) {
+ if( !PyInt_Check( ob1 ) || !PyInt_Check( ob2 ) ) {
Py_DECREF( ob1 );
Py_DECREF( ob2 );
return EXPP_ReturnIntError( PyExc_TypeError,