diff --git a/source/blender/python/generic/mathutils_Quaternion.c b/source/blender/python/generic/mathutils_Quaternion.c index be1fa6db035..9c79ccb442f 100644 --- a/source/blender/python/generic/mathutils_Quaternion.c +++ b/source/blender/python/generic/mathutils_Quaternion.c @@ -189,7 +189,7 @@ static PyObject *Quaternion_dot(QuaternionObject *self, PyObject *value) return PyFloat_FromDouble(dot_qtqt(self->quat, tquat)); } -static char Quaternion_difference_doc[] = +static char Quaternion_rotation_difference_doc[] = ".. function:: difference(other)\n" "\n" " Returns a quaternion representing the rotational difference.\n" @@ -199,7 +199,7 @@ static char Quaternion_difference_doc[] = " :return: the rotational difference between the two quat rotations.\n" " :rtype: :class:`Quaternion`\n" ; -static PyObject *Quaternion_difference(QuaternionObject *self, PyObject *value) +static PyObject *Quaternion_rotation_difference(QuaternionObject *self, PyObject *value) { float tquat[QUAT_SIZE], quat[QUAT_SIZE]; @@ -1000,7 +1000,7 @@ static struct PyMethodDef Quaternion_methods[] = { /* operation between 2 or more types */ {"cross", (PyCFunction) Quaternion_cross, METH_O, Quaternion_cross_doc}, {"dot", (PyCFunction) Quaternion_dot, METH_O, Quaternion_dot_doc}, - {"difference", (PyCFunction) Quaternion_difference, METH_O, Quaternion_difference_doc}, + {"rotation_difference", (PyCFunction) Quaternion_rotation_difference, METH_O, Quaternion_rotation_difference_doc}, {"slerp", (PyCFunction) Quaternion_slerp, METH_VARARGS, Quaternion_slerp_doc}, {"rotate", (PyCFunction) Quaternion_rotate, METH_O, Quaternion_rotate_doc}, diff --git a/source/blender/python/generic/mathutils_Vector.c b/source/blender/python/generic/mathutils_Vector.c index 912d1310967..8e0c53be308 100644 --- a/source/blender/python/generic/mathutils_Vector.c +++ b/source/blender/python/generic/mathutils_Vector.c @@ -615,7 +615,7 @@ static PyObject *Vector_angle(VectorObject *self, PyObject *args) return PyFloat_FromDouble(saacos(dot)); } -static char Vector_difference_doc[] = +static char Vector_rotation_difference_doc[] = ".. function:: difference(other)\n" "\n" " Returns a quaternion representing the rotational difference between this vector and another.\n" @@ -627,7 +627,7 @@ static char Vector_difference_doc[] = "\n" " .. note:: 2D vectors raise an :exc:`AttributeError`.\n" ; -static PyObject *Vector_difference(VectorObject *self, PyObject *value) +static PyObject *Vector_rotation_difference(VectorObject *self, PyObject *value) { float quat[4], vec_a[3], vec_b[3]; @@ -2136,7 +2136,7 @@ static struct PyMethodDef Vector_methods[] = { {"cross", (PyCFunction) Vector_cross, METH_O, Vector_cross_doc}, {"dot", (PyCFunction) Vector_dot, METH_O, Vector_dot_doc}, {"angle", (PyCFunction) Vector_angle, METH_VARARGS, Vector_angle_doc}, - {"difference", (PyCFunction) Vector_difference, METH_O, Vector_difference_doc}, + {"rotation_difference", (PyCFunction) Vector_rotation_difference, METH_O, Vector_rotation_difference_doc}, {"project", (PyCFunction) Vector_project, METH_O, Vector_project_doc}, {"lerp", (PyCFunction) Vector_lerp, METH_VARARGS, Vector_lerp_doc}, {"rotate", (PyCFunction) Vector_rotate, METH_O, Vector_rotate_doc},