diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-01 07:20:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-01 07:26:18 +0400 |
commit | 13ea967cce4032564cfbbfe3010b538486f36524 (patch) | |
tree | fff7d2eaddd8bc1b6034f76729bb34c12c555607 /source/blender/editors/space_view3d/drawobject.c | |
parent | 315d85faa1b4f58a91041030dcac70085808c038 (diff) |
Code cleanup: correct abs use and quiet warnings
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index c7e6c4598fc..b0eb8d20554 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -1036,7 +1036,7 @@ static void spotvolume(float lvec[3], float vvec[3], const float inp) static void draw_spot_cone(Lamp *la, float x, float z) { - z = fabs(z); + z = fabsf(z); glBegin(GL_TRIANGLE_FAN); glVertex3f(0.0f, 0.0f, -x); @@ -1251,7 +1251,7 @@ static void drawlamp(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *base, glTranslatef(0.0, 0.0, x); if (la->mode & LA_SQUARE) { float tvec[3]; - float z_abs = fabs(z); + float z_abs = fabsf(z); tvec[0] = tvec[1] = z_abs; tvec[2] = 0.0; |