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
path: root/source
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2004-03-11 15:23:53 +0300
committerJoseph Gilbert <ascotan@gmail.com>2004-03-11 15:23:53 +0300
commit7e5f2c24578d688e7141375dd59e1af934c67872 (patch)
tree8f98cd1f4a9ba91659563ae2e2788f68a67e80b8 /source
parent24954c9f3fd3593a8322ec088276fe3d2c7c8b19 (diff)
- fixed a few setattr calls to use tuple parsing
- bug reported by Alfredo de Greef
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c
index 468f377a12f..3bc293dffb2 100644
--- a/source/blender/python/api2_2x/Object.c
+++ b/source/blender/python/api2_2x/Object.c
@@ -1735,7 +1735,7 @@ static int Object_setAttr (BPy_Object *obj, char *name, PyObject *value)
if (StringEqual (name, "dRotZ"))
return (!PyArg_Parse (value, "f", &(object->drot[2])));
if (StringEqual (name, "drot"))
- return (!PyArg_Parse (value, "fff", &(object->drot[0]),
+ return (!PyArg_ParseTuple (value, "fff", &(object->drot[0]),
&(object->drot[1]), &(object->drot[2])));
if (StringEqual (name, "SizeX"))
return (!PyArg_Parse (value, "f", &(object->size[0])));
@@ -1744,7 +1744,7 @@ static int Object_setAttr (BPy_Object *obj, char *name, PyObject *value)
if (StringEqual (name, "SizeZ"))
return (!PyArg_Parse (value, "f", &(object->size[2])));
if (StringEqual (name, "size"))
- return (!PyArg_Parse (value, "fff", &(object->size[0]),
+ return (!PyArg_ParseTuple (value, "fff", &(object->size[0]),
&(object->size[1]), &(object->size[2])));
if (StringEqual (name, "dSizeX"))
return (!PyArg_Parse (value, "f", &(object->dsize[0])));
@@ -1753,7 +1753,7 @@ static int Object_setAttr (BPy_Object *obj, char *name, PyObject *value)
if (StringEqual (name, "dSizeZ"))
return (!PyArg_Parse (value, "f", &(object->dsize[2])));
if (StringEqual (name, "dsize"))
- return (!PyArg_Parse (value, "fff", &(object->dsize[0]),
+ return (!PyArg_ParseTuple (value, "fff", &(object->dsize[0]),
&(object->dsize[1]), &(object->dsize[2])));
if (strncmp (name,"Eff", 3) == 0)
{