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:
@@ -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" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user