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/Lamp.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/Lamp.c')
-rw-r--r-- | source/blender/python/api2_2x/Lamp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Lamp.c b/source/blender/python/api2_2x/Lamp.c index 9f684e914ed..89d0eef891c 100644 --- a/source/blender/python/api2_2x/Lamp.c +++ b/source/blender/python/api2_2x/Lamp.c @@ -1637,7 +1637,7 @@ static PyObject *Lamp_oldsetMode( BPy_Lamp * self, PyObject * args ) /* check each argument for type, find its value */ for ( i = (short)PyTuple_Size( args ); i-- ; ) { - name = PyString_AsString ( PySequence_Fast_GET_ITEM( args, i ) ); + name = PyString_AsString ( PyTuple_GET_ITEM( args, i ) ); if( !name ) return EXPP_ReturnPyObjError ( PyExc_AttributeError, "expected string argument" ); |