diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-04-25 07:34:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-04-25 07:34:16 +0400 |
commit | 708667c6f6695b04f613566c4ff1b6c2788ab50c (patch) | |
tree | db4f93df431d08530287addbe5f1c231ef360a35 /source/blender/blenlib/intern | |
parent | b37ae4a3754bf0640de32b6a7e2be970d359d822 (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.c | 8 |
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; |