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>2014-04-20 19:54:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-20 20:02:21 +0400
commit55d75f5020ebdbaeb9cab1c7be565c83ba722bc2 (patch)
tree0798082991ace83f32f4d6c77b24629badf67ac4 /source/blender/editors/space_view3d/drawobject.c
parent1a1bc281e64624d1a6b798f8dd84dda134f0f45a (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.c2
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 */