[Bf-blender-cvs] [0f6d52cd296] master: PyDocs: Adde link to Wikipedia page for mathutils.Euler class

Aaron Carlisle noreply at git.blender.org
Thu Mar 29 20:25:29 CEST 2018


Commit: 0f6d52cd2966f30d45f55ac6fec8d9d5c0ae3b68
Author: Aaron Carlisle
Date:   Thu Mar 29 14:25:13 2018 -0400
Branches: master
https://developer.blender.org/rB0f6d52cd2966f30d45f55ac6fec8d9d5c0ae3b68

PyDocs: Adde link to Wikipedia page for mathutils.Euler class

This update adds a link to the Wikipedia article "Euler angles" to the description of the mathutils.Euler class.
I initially was not sure what a "Euler" represented in Blender API, but found the Wikipedia article helpful. I believe others will find the link helpful too if it appears in the class documentation.

This is similar to the Wikipedia links that appear in the mathutils.Matrix class, e.g: https://docs.blender.org/api/blender_python_api_current/mathutils.html?highlight=euler#mathutils.Matrix.adjugate

Author: @justasb

Reviewers: campbellbarton, trumanblending, Blendify

Reviewed By: Blendify

Subscribers: Blendify

Tags: #bf_blender

Differential Revision: https://developer.blender.org/D3077

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

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

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

diff --git a/source/blender/python/mathutils/mathutils_Euler.c b/source/blender/python/mathutils/mathutils_Euler.c
index 9492b6d67f3..026384743bd 100644
--- a/source/blender/python/mathutils/mathutils_Euler.c
+++ b/source/blender/python/mathutils/mathutils_Euler.c
@@ -689,6 +689,8 @@ PyDoc_STRVAR(euler_doc,
 "\n"
 "   This object gives access to Eulers in Blender.\n"
 "\n"
+"   .. seealso:: `Euler angles <https://en.wikipedia.org/wiki/Euler_angles>`__ on Wikipedia.\n"
+"\n"
 "   :param angles: Three angles, in radians.\n"
 "   :type angles: 3d vector\n"
 "   :param order: Optional order of the angles, a permutation of ``XYZ``.\n"



More information about the Bf-blender-cvs mailing list