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>2013-04-04 08:22:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-04 08:22:38 +0400
commit2804caff4ce6c9f6d5ebdd101e77c92b7ac65db4 (patch)
treeb3f91af65a3d29c253cae82117bfb4477b834f69 /source/blender/editors/space_view3d/drawarmature.c
parent966e86cd2dbe2c627e65766d0361cc79f63d7cc7 (diff)
code cleanup: use bools, (float)sin/(float)cos -> sinf/cosf, more meaningful var names.
Diffstat (limited to 'source/blender/editors/space_view3d/drawarmature.c')
-rw-r--r--source/blender/editors/space_view3d/drawarmature.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/space_view3d/drawarmature.c b/source/blender/editors/space_view3d/drawarmature.c
index cb685b59b64..2ff52b51069 100644
--- a/source/blender/editors/space_view3d/drawarmature.c
+++ b/source/blender/editors/space_view3d/drawarmature.c
@@ -1573,8 +1573,8 @@ static void draw_pose_dofs(Object *ob)
for (i = 0; i < 3; i++) {
/* *0.5f here comes from M_PI/360.0f when rotations were still in degrees */
- amin[i] = (float)sin(pchan->limitmin[i] * 0.5f);
- amax[i] = (float)sin(pchan->limitmax[i] * 0.5f);
+ amin[i] = sinf(pchan->limitmin[i] * 0.5f);
+ amax[i] = sinf(pchan->limitmax[i] * 0.5f);
}
glScalef(1.0f, -1.0f, 1.0f);
@@ -1605,8 +1605,8 @@ static void draw_pose_dofs(Object *ob)
phi = fac * (pchan->limitmax[2] - pchan->limitmin[2]);
i = (a == -16) ? 0 : 1;
- corner[i][0] = (float)sin(phi);
- corner[i][1] = (float)cos(phi);
+ corner[i][0] = sinf(phi);
+ corner[i][1] = cosf(phi);
corner[i][2] = 0.0f;
glVertex3fv(corner[i]);
}
@@ -1629,8 +1629,8 @@ static void draw_pose_dofs(Object *ob)
i = (a == -16) ? 2 : 3;
corner[i][0] = 0.0f;
- corner[i][1] = (float)sin(phi);
- corner[i][2] = (float)cos(phi);
+ corner[i][1] = sinf(phi);
+ corner[i][2] = cosf(phi);
glVertex3fv(corner[i]);
}
glEnd();