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>2007-12-06 23:15:03 +0300
committerKen Hughes <khughes@pacific.edu>2007-12-06 23:15:03 +0300
commit3bbf0736b26e80201dced29dc55f18438fb46e69 (patch)
tree7833723ebf5b279137772dfcb09b8d86163632c6 /source/blender/python
parent37d11907d0a96a68d1200bf57c6efdb31f4692e4 (diff)
Python API
---------- Bugfix #7877: fix for lamp.setMode() and lamp.setType(): need to build tuples instead of just int or float objects.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/api2_2x/Lamp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Lamp.c b/source/blender/python/api2_2x/Lamp.c
index d40cc5a2cfc..f864570395a 100644
--- a/source/blender/python/api2_2x/Lamp.c
+++ b/source/blender/python/api2_2x/Lamp.c
@@ -1503,7 +1503,7 @@ static PyObject *Lamp_oldsetType( BPy_Lamp * self, PyObject * value )
/* build tuple, call wrapper */
- arg = PyInt_FromLong( (long)type );
+ arg = Py_BuildValue( "(i)", type );
error = EXPP_setterWrapper ( (void *)self, arg, (setter)Lamp_setType );
Py_DECREF ( arg );
return error;
@@ -1562,7 +1562,7 @@ static PyObject *Lamp_oldsetMode( BPy_Lamp * self, PyObject * args )
/* build tuple, call wrapper */
- value = PyInt_FromLong( (long)flag );
+ value = Py_BuildValue( "(i)", flag );
error = EXPP_setterWrapper ( (void *)self, value, (setter)Lamp_setMode );
Py_DECREF ( value );
return error;