bugfix [#22163] Add->mesh->torus is broken

recent commit broke this, missed changing double to float.
This commit is contained in:
2010-04-26 21:25:14 +00:00
parent 6bb55fd93e
commit 5e2a9770f5
2 changed files with 3 additions and 2 deletions

View File

@@ -798,7 +798,7 @@ static PyObject *Quaternion_getAxisVec( QuaternionObject * self, void *type )
static PyObject *Quaternion_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
PyObject *seq= NULL;
double angle = 0.0f;
float angle = 0.0f;
float quat[QUAT_SIZE]= {0.0f, 0.0f, 0.0f, 0.0f};
if(!PyArg_ParseTuple(args, "|Of:mathutils.Quaternion", &seq, &angle))
@@ -814,6 +814,7 @@ static PyObject *Quaternion_new(PyTypeObject *type, PyObject *args, PyObject *kw
case 2:
if (mathutils_array_parse(quat, 3, 3, seq, "mathutils.Quaternion()") == -1)
return NULL;
axis_angle_to_quat(quat, quat, angle);
break;
/* PyArg_ParseTuple assures no more then 2 */