Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/mathutils/mathutils_Quaternion.c
| Show First 20 Lines • Show All 314 Lines • ▼ Show 20 Lines | static PyObject *Quaternion_rotation_difference(QuaternionObject *self, PyObject *value) | ||||
| if (BaseMath_ReadCallback(self) == -1) { | if (BaseMath_ReadCallback(self) == -1) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if (mathutils_array_parse(tquat, | if (mathutils_array_parse(tquat, | ||||
| QUAT_SIZE, | QUAT_SIZE, | ||||
| QUAT_SIZE, | QUAT_SIZE, | ||||
| value, | value, | ||||
| "Quaternion.difference(other), invalid 'other' arg") == -1) { | "Quaternion.rotation_difference(other), invalid 'other' arg") == -1) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| rotation_between_quats_to_quat(quat, self->quat, tquat); | rotation_between_quats_to_quat(quat, self->quat, tquat); | ||||
| return Quaternion_CreatePyObject(quat, Py_TYPE(self)); | return Quaternion_CreatePyObject(quat, Py_TYPE(self)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,328 Lines • Show Last 20 Lines | |||||