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:
authorKen Hughes <khughes@pacific.edu>2005-10-04 02:06:16 +0400
committerKen Hughes <khughes@pacific.edu>2005-10-04 02:06:16 +0400
commitb777b23e073193108a656b026e59e44f59c5d392 (patch)
treefbf9e5cb839df6ce8256282444ec507043f29f11 /source/blender/python/api2_2x/Material.c
parentb4c85d58f6f7d8d5d5ea62bf508dcd5da812d317 (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/Material.c')
-rw-r--r--source/blender/python/api2_2x/Material.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Material.c b/source/blender/python/api2_2x/Material.c
index 31f6bb2290c..7a3bbc89f45 100644
--- a/source/blender/python/api2_2x/Material.c
+++ b/source/blender/python/api2_2x/Material.c
@@ -2945,7 +2945,7 @@ static PyObject *Matr_oldsetMode( BPy_Material * self, PyObject * args )
*/
if ( (PySequence_Size( args ) == 1)
- && PyInt_Check ( PySequence_Fast_GET_ITEM ( args , 0 ) )
+ && PyInt_Check ( PyTuple_GET_ITEM ( args , 0 ) )
&& PyArg_ParseTuple( args, "i", &flag )
&& flag < (MA_RAYMIRROR >> 1) ) {
ok = 1;