diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-07-01 09:41:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-07-01 09:41:23 +0400 |
commit | 39e4dc6202f242fb0676552903d5fe0960eae154 (patch) | |
tree | 525af303ad0a408aa919af021d3b64b2bde16bfc /source/blender/python/api2_2x/Scene.c | |
parent | 676043c31461c5a978de209a23b0f4e37d201403 (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/Scene.c')
-rw-r--r-- | source/blender/python/api2_2x/Scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index 3bb509eb070..1414f949f2f 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -249,7 +249,7 @@ static int Scene_setLayerMask( BPy_Scene * self, PyObject * value ) SCENE_DEL_CHECK_INT(self); - if (!PyInt_CheckExact(value)) { + if (!PyInt_Check(value)) { return EXPP_ReturnIntError( PyExc_AttributeError, "expected an integer (bitmask) as argument" ); } |