Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2010-07-30 08:57:27 +0400
committerMitchell Stokes <mogurijin@gmail.com>2010-07-30 08:57:27 +0400
commit1b7d264f1e9ac20e124e1e1d6138c6b7eda9be2c (patch)
treee6ca907d542164b0534defd6a6a1f70eace40ae7 /source
parent520d12e13e2143cfd54a7696df94cd87e7a51e39 (diff)
Fixing a typo in the BGE Python API:
BL_ArmatureChannel.rotaion_euler -> BL_ArmatureChannel.rotation_euler Making the docs match the code: BL_ArmatureChannel.rotation -> BL_ArmatureChannel.rotation_quaternion BL_ArmatureChannel.euler_rotation -> BL_ArmatureChannel.rotation_euler
Diffstat (limited to 'source')
-rw-r--r--source/gameengine/Converter/BL_ArmatureChannel.cpp2
-rw-r--r--source/gameengine/PyDoc/bge.types.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/source/gameengine/Converter/BL_ArmatureChannel.cpp b/source/gameengine/Converter/BL_ArmatureChannel.cpp
index 2ce29a76b56..424c8441c0e 100644
--- a/source/gameengine/Converter/BL_ArmatureChannel.cpp
+++ b/source/gameengine/Converter/BL_ArmatureChannel.cpp
@@ -120,7 +120,7 @@ PyAttributeDef BL_ArmatureChannel::AttributesPtr[] = {
KX_PYATTRIBUTE_FLOAT_VECTOR_RW("location",-FLT_MAX,FLT_MAX,bPoseChannel,loc,3),
KX_PYATTRIBUTE_FLOAT_VECTOR_RW("scale",-FLT_MAX,FLT_MAX,bPoseChannel,size,3),
KX_PYATTRIBUTE_FLOAT_VECTOR_RW("rotation_quaternion",-1.0f,1.0f,bPoseChannel,quat,4),
- KX_PYATTRIBUTE_FLOAT_VECTOR_RW("rotaion_euler",-10.f,10.f,bPoseChannel,eul,3),
+ KX_PYATTRIBUTE_FLOAT_VECTOR_RW("rotation_euler",-10.f,10.f,bPoseChannel,eul,3),
KX_PYATTRIBUTE_SHORT_RW("rotation_mode",0,ROT_MODE_MAX-1,false,bPoseChannel,rotmode),
KX_PYATTRIBUTE_FLOAT_MATRIX_RO("channel_matrix",bPoseChannel,chan_mat,4),
KX_PYATTRIBUTE_FLOAT_MATRIX_RO("pose_matrix",bPoseChannel,pose_mat,4),
diff --git a/source/gameengine/PyDoc/bge.types.rst b/source/gameengine/PyDoc/bge.types.rst
index e0ace6ad85b..028b4fa72f3 100644
--- a/source/gameengine/PyDoc/bge.types.rst
+++ b/source/gameengine/PyDoc/bge.types.rst
@@ -4927,7 +4927,7 @@ Game Engine bge.types Module
Changing this field has no immediate effect, the pose is updated when the armature is updated during the graphic render (see :data:`BL_ArmatureObject.update`)
- .. attribute:: rotation
+ .. attribute:: rotation_quaternion
rotation of the bone relative to its parent expressed as a quaternion, read-write.
@@ -4941,7 +4941,7 @@ Game Engine bge.types Module
Changing this field has no immediate effect, the pose is updated when the armature is updated during the graphic render (see :data:`BL_ArmatureObject.update`)
- .. attribute:: euler_rotation
+ .. attribute:: rotation_euler
rotation of the bone relative to its parent expressed as a set of euler angles, read-write.