From 1b7d264f1e9ac20e124e1e1d6138c6b7eda9be2c Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Fri, 30 Jul 2010 04:57:27 +0000 Subject: 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 --- source/gameengine/Converter/BL_ArmatureChannel.cpp | 2 +- source/gameengine/PyDoc/bge.types.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source') 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. -- cgit v1.2.3