diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-09-30 18:14:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-09-30 18:14:49 +0400 |
commit | 32b1e2383bf50ebe30c26618496ec966620d1d23 (patch) | |
tree | 373e50c9d290f46ba33096821cf17ba54003d8ed /source/blender/python/api2_2x/quat.c | |
parent | 8e7b4039247419a34093b06b5a05c2423d2cab05 (diff) |
3rd attempt to commit, metaball fixes and small vector optimization
Diffstat (limited to 'source/blender/python/api2_2x/quat.c')
-rw-r--r-- | source/blender/python/api2_2x/quat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/quat.c b/source/blender/python/api2_2x/quat.c index 43aa7422101..f94ad11e241 100644 --- a/source/blender/python/api2_2x/quat.c +++ b/source/blender/python/api2_2x/quat.c @@ -318,8 +318,7 @@ static PyObject *Quaternion_item(QuaternionObject * self, int i) if(i < 0 || i >= 4) return EXPP_ReturnPyObjError(PyExc_IndexError, "quaternion[attribute]: array index out of range\n"); - - return Py_BuildValue("f", self->quat[i]); + return PyFloat_FromDouble(self->quat[i]); } //----------------------------object[]------------------------- |