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-29 20:12:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-29 20:12:11 +0400
commitd30988bbf14e8f418f429798e7097a96e3a7e8b9 (patch)
tree507072282172226d52f2150c6259a073524c8105 /source/blender/editors/space_view3d/drawobject.c
parentfc591600744774ea5e94ee3a640324fec27eafba (diff)
Code cleanup: avoid sin/cos calls when drawing sun lamp
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 6e8e1ffe114..86383baabfa 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -1218,7 +1218,7 @@ static void drawlamp(View3D *v3d, RegionView3D *rv3d, Base *base,
short axis;
/* setup a 45 degree rotation matrix */
- axis_angle_normalized_to_mat3(mat, imat[2], (float)M_PI / 4.0f);
+ axis_angle_normalized_to_mat3_ex(mat, imat[2], M_SQRT1_2, M_SQRT1_2);
/* vectors */
mul_v3_v3fl(v1, imat[0], circrad * 1.2f);