diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-10-04 02:06:16 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-10-04 02:06:16 +0400 |
commit | b777b23e073193108a656b026e59e44f59c5d392 (patch) | |
tree | fbf9e5cb839df6ce8256282444ec507043f29f11 /source/blender/python/api2_2x/Texture.c | |
parent | b4c85d58f6f7d8d5d5ea62bf508dcd5da812d317 (diff) |
Bugfixes for #3102, #3104
- Fix incorrect usage of PySequence_Fast_GET_ITEM()
- make EXPP_setFloatRange() convert its argument to float instead of short
Diffstat (limited to 'source/blender/python/api2_2x/Texture.c')
-rw-r--r-- | source/blender/python/api2_2x/Texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c index 9a9dc93af85..30cb602416b 100644 --- a/source/blender/python/api2_2x/Texture.c +++ b/source/blender/python/api2_2x/Texture.c @@ -2440,7 +2440,7 @@ static PyObject *Texture_oldsetFlags( BPy_Texture * self, PyObject * args ) for ( i = PyTuple_Size( args ); i-- ; ) { short thisflag; - char * name = PyString_AsString( PySequence_Fast_GET_ITEM( args, i ) ); + char * name = PyString_AsString( PyTuple_GET_ITEM( args, i ) ); if( !name ) return EXPP_ReturnPyObjError ( PyExc_AttributeError, "expected string argument" ); @@ -2622,7 +2622,7 @@ static PyObject *Texture_oldsetImageFlags( BPy_Texture * self, PyObject * args ) for( i = PyTuple_Size( args ); i-- ; ) { short thisflag; - char * name = PyString_AsString( PySequence_Fast_GET_ITEM( args, i ) ); + char * name = PyString_AsString( PyTuple_GET_ITEM( args, i ) ); if( !name ) return EXPP_ReturnPyObjError ( PyExc_AttributeError, "expected string argument" ); |