Fix T55527: creating a Quaternion without args should result in identity
quaternion Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3487
This commit is contained in:
@@ -1100,7 +1100,8 @@ static PyObject *Quaternion_new(PyTypeObject *type, PyObject *args, PyObject *kw
|
||||
{
|
||||
PyObject *seq = NULL;
|
||||
double angle = 0.0f;
|
||||
float quat[QUAT_SIZE] = {0.0f, 0.0f, 0.0f, 0.0f};
|
||||
float quat[QUAT_SIZE];
|
||||
unit_qt(quat);
|
||||
|
||||
if (kwds && PyDict_Size(kwds)) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
|
Reference in New Issue
Block a user