forked from bartvdbraak/blender
fix warning
This commit is contained in:
parent
ba5df38d66
commit
bee18c57d4
@ -437,7 +437,7 @@ static PyObject *M_Mathutils_RotationMatrix(PyObject * self, PyObject * args)
|
|||||||
mat[8] = 1.0f;
|
mat[8] = 1.0f;
|
||||||
} else if((strcmp(axis, "r") == 0) || (strcmp(axis, "R") == 0)) {
|
} else if((strcmp(axis, "r") == 0) || (strcmp(axis, "R") == 0)) {
|
||||||
//arbitrary rotation
|
//arbitrary rotation
|
||||||
AxisAngleToMat3(vec->vec, angle, (float *)mat);
|
AxisAngleToMat3(vec->vec, angle, (float (*)[3])mat);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
PyErr_SetString(PyExc_AttributeError, "Mathutils.RotationMatrix(): unrecognizable axis of rotation type - expected x,y,z or r\n");
|
PyErr_SetString(PyExc_AttributeError, "Mathutils.RotationMatrix(): unrecognizable axis of rotation type - expected x,y,z or r\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user