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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-04-25 07:34:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-25 07:34:16 +0400
commit708667c6f6695b04f613566c4ff1b6c2788ab50c (patch)
treedb4f93df431d08530287addbe5f1c231ef360a35 /source/blender/blenlib/intern
parentb37ae4a3754bf0640de32b6a7e2be970d359d822 (diff)
minor mathutils update
- docstring for Euler.rotate - rotate_eul, use upper case in Py and C. - use less verbose repr method.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/math_rotation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c
index a8212a531a6..6b5bf7743ef 100644
--- a/source/blender/blenlib/intern/math_rotation.c
+++ b/source/blender/blenlib/intern/math_rotation.c
@@ -919,8 +919,8 @@ void rotate_eul(float *beul, char axis, float ang)
float eul[3], mat1[3][3], mat2[3][3], totmat[3][3];
eul[0]= eul[1]= eul[2]= 0.0f;
- if(axis=='x') eul[0]= ang;
- else if(axis=='y') eul[1]= ang;
+ if(axis=='X') eul[0]= ang;
+ else if(axis=='Y') eul[1]= ang;
else eul[2]= ang;
eul_to_mat3(mat1,eul);
@@ -1238,9 +1238,9 @@ void rotate_eulO(float beul[3], short order, char axis, float ang)
float eul[3], mat1[3][3], mat2[3][3], totmat[3][3];
eul[0]= eul[1]= eul[2]= 0.0f;
- if (axis=='x')
+ if (axis=='X')
eul[0]= ang;
- else if (axis=='y')
+ else if (axis=='Y')
eul[1]= ang;
else
eul[2]= ang;