[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30887] trunk/blender/source/gameengine: Fixing a typo in the BGE Python API:

Mitchell Stokes mogurijin at gmail.com
Fri Jul 30 06:57:27 CEST 2010


Revision: 30887
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30887
Author:   moguri
Date:     2010-07-30 06:57:27 +0200 (Fri, 30 Jul 2010)

Log Message:
-----------
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

Modified Paths:
--------------
    trunk/blender/source/gameengine/Converter/BL_ArmatureChannel.cpp
    trunk/blender/source/gameengine/PyDoc/bge.types.rst

Modified: trunk/blender/source/gameengine/Converter/BL_ArmatureChannel.cpp
===================================================================
--- trunk/blender/source/gameengine/Converter/BL_ArmatureChannel.cpp	2010-07-30 01:27:38 UTC (rev 30886)
+++ trunk/blender/source/gameengine/Converter/BL_ArmatureChannel.cpp	2010-07-30 04:57:27 UTC (rev 30887)
@@ -120,7 +120,7 @@
 	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),

Modified: trunk/blender/source/gameengine/PyDoc/bge.types.rst
===================================================================
--- trunk/blender/source/gameengine/PyDoc/bge.types.rst	2010-07-30 01:27:38 UTC (rev 30886)
+++ trunk/blender/source/gameengine/PyDoc/bge.types.rst	2010-07-30 04:57:27 UTC (rev 30887)
@@ -4927,7 +4927,7 @@
       
          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 @@
       
          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.
 





More information about the Bf-blender-cvs mailing list