diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-20 19:54:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-20 20:02:21 +0400 |
commit | 55d75f5020ebdbaeb9cab1c7be565c83ba722bc2 (patch) | |
tree | 0798082991ace83f32f4d6c77b24629badf67ac4 /source/blender/editors/space_view3d/drawobject.c | |
parent | 1a1bc281e64624d1a6b798f8dd84dda134f0f45a (diff) |
Code cleanup: correct abs use
also minor cleanup to rotation code
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index d9bc40b6555..6ca67aa91c8 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -1302,7 +1302,7 @@ static void drawlamp(View3D *v3d, RegionView3D *rv3d, Base *base, /* draw the circle/square representing spotbl */ if (la->type == LA_SPOT) { - float spotblcirc = fabs(z) * (1 - pow(la->spotblend, 2)); + float spotblcirc = fabsf(z) * (1.0f - powf(la->spotblend, 2)); /* hide line if it is zero size or overlaps with outer border, * previously it adjusted to always to show it but that seems * confusing because it doesn't show the actual blend size */ |