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/Texture.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/Texture.c')
-rw-r--r--source/blender/python/api2_2x/Texture.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c
index ef17207d6ef..11a869d0b7c 100644
--- a/source/blender/python/api2_2x/Texture.c
+++ b/source/blender/python/api2_2x/Texture.c
@@ -1530,7 +1530,7 @@ static int Texture_setFlags( BPy_Texture * self, PyObject * value )
| TEX_CHECKER_ODD
| TEX_CHECKER_EVEN;
- if( !PyInt_CheckExact ( value ) ) {
+ if( !PyInt_Check( value ) ) {
char errstr[128];
sprintf ( errstr , "expected int bitmask of 0x%08x", bitmask );
return EXPP_ReturnIntError( PyExc_TypeError, errstr );
@@ -1602,7 +1602,7 @@ static int Texture_setImageFlags( BPy_Texture * self, PyObject * value,
| TEX_CALCALPHA
| TEX_NORMALMAP;
- if( !PyInt_CheckExact ( value ) ) {
+ if( !PyInt_Check( value ) ) {
char errstr[128];
sprintf ( errstr , "expected int bitmask of 0x%08x", bitmask );
return EXPP_ReturnIntError( PyExc_TypeError, errstr );
@@ -1674,7 +1674,7 @@ static int Texture_setNoiseBasis( BPy_Texture * self, PyObject * value )
{
int param;
- if( !PyInt_CheckExact ( value ) )
+ if( !PyInt_Check( value ) )
return EXPP_ReturnIntError( PyExc_TypeError,
"expected int (see 'Noise' constant dictionary)" );
@@ -1700,7 +1700,7 @@ static int Texture_setNoiseBasis2( BPy_Texture * self, PyObject * value,
if( (int)type == EXPP_TEX_NOISEBASIS2 ) {
int param;
- if( !PyInt_CheckExact ( value ) )
+ if( !PyInt_Check( value ) )
return EXPP_ReturnIntError( PyExc_TypeError,
"expected int (see 'Noise' constant dictionary)" );
@@ -1720,7 +1720,7 @@ static int Texture_setNoiseBasis2( BPy_Texture * self, PyObject * value,
*/
} else {
- if( !PyInt_CheckExact ( value ) )
+ if( !PyInt_Check( value ) )
return EXPP_ReturnIntError( PyExc_TypeError,
"expected int value of 1" );
@@ -1772,7 +1772,7 @@ static int Texture_setSType( BPy_Texture * self, PyObject * value )
short param;
const char *dummy = NULL;
- if( !PyInt_CheckExact ( value ) )
+ if( !PyInt_Check( value ) )
return EXPP_ReturnIntError( PyExc_TypeError,
"expected int argument" );