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/World.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/World.c')
-rw-r--r--source/blender/python/api2_2x/World.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c
index fff1a1e6bab..6d5b20b46d9 100644
--- a/source/blender/python/api2_2x/World.c
+++ b/source/blender/python/api2_2x/World.c
@@ -573,7 +573,7 @@ static PyObject *World_getSkytype( BPy_World * self )
static int World_setSkytype( BPy_World * self, PyObject * value )
{
- if( !PyInt_CheckExact(value) )
+ if( !PyInt_Check(value) )
return ( EXPP_ReturnIntError( PyExc_TypeError,
"expected int argument" ) );
self->world->skytype = (short)PyInt_AsLong(value);
@@ -606,7 +606,7 @@ static PyObject *World_getMode( BPy_World * self )
static int World_setMode( BPy_World * self, PyObject * value )
{
- if( !PyInt_CheckExact(value) )
+ if( !PyInt_Check(value) )
return ( EXPP_ReturnIntError( PyExc_TypeError,
"expected int argument" ) );
self->world->mode = (short)PyInt_AsLong(value);
@@ -640,7 +640,7 @@ static PyObject *World_getMistype( BPy_World * self )
static int World_setMistype( BPy_World * self, PyObject * value )
{
- if( !PyInt_CheckExact(value) )
+ if( !PyInt_Check(value) )
return ( EXPP_ReturnIntError( PyExc_TypeError,
"expected int argument" ) );
self->world->mistype = (short)PyInt_AsLong(value);