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.
This commit is contained in:
Campbell Barton
2007-07-01 05:41:23 +00:00
parent 676043c314
commit 39e4dc6202
18 changed files with 52 additions and 52 deletions

View File

@@ -987,7 +987,7 @@ static PyObject *Modifier_getData( BPy_Modifier * self, PyObject * key )
{
int setting;
if( !PyInt_CheckExact( key ) )
if( !PyInt_Check( key ) )
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected an int arg as stored in Blender.Modifier.Settings" );