[Bf-blender-cvs] [f64064e4b16] blender-v2.81-release: Docs: correct indent for to_swing_twist docstring

Campbell Barton noreply at git.blender.org
Fri Nov 15 16:41:28 CET 2019


Commit: f64064e4b164eeef8746d26762567b2f0ec0ddb4
Author: Campbell Barton
Date:   Sat Nov 16 01:30:07 2019 +1100
Branches: blender-v2.81-release
https://developer.blender.org/rBf64064e4b164eeef8746d26762567b2f0ec0ddb4

Docs: correct indent for to_swing_twist docstring

===================================================================

M	source/blender/python/mathutils/mathutils_Quaternion.c

===================================================================

diff --git a/source/blender/python/mathutils/mathutils_Quaternion.c b/source/blender/python/mathutils/mathutils_Quaternion.c
index 0de1ffb9879..c64d6b09387 100644
--- a/source/blender/python/mathutils/mathutils_Quaternion.c
+++ b/source/blender/python/mathutils/mathutils_Quaternion.c
@@ -180,7 +180,7 @@ PyDoc_STRVAR(Quaternion_to_swing_twist_doc,
              ".. method:: to_swing_twist(axis)\n"
              "\n"
              "   Split the rotation into a swing quaternion with the specified\n"
-             "axis fixed at zero, and the remaining twist rotation angle.\n"
+             "   axis fixed at zero, and the remaining twist rotation angle.\n"
              "\n"
              "   :arg axis: twist axis as a string in ['X', 'Y', 'Z']\n"
              "   :return: swing, twist angle.\n"
@@ -203,7 +203,7 @@ static PyObject *Quaternion_to_swing_twist(QuaternionObject *self, PyObject *axi
   else {
     PyErr_SetString(PyExc_ValueError,
                     "Quaternion.to_swing_twist(): "
-                    "the axis agrument must be "
+                    "the axis argument must be "
                     "a string in 'X', 'Y', 'Z'");
     return NULL;
   }
@@ -226,7 +226,7 @@ PyDoc_STRVAR(
     "\n"
     "   Return the exponential map representation of the quaternion.\n"
     "\n"
-    "   This representation consist of the rotation axis multiplied by the rotation angle."
+    "   This representation consist of the rotation axis multiplied by the rotation angle.\n"
     "   Such a representation is useful for interpolation between multiple orientations.\n"
     "\n"
     "   :return: exponential map.\n"



More information about the Bf-blender-cvs mailing list