diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-03 03:51:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-03 03:51:58 +0300 |
commit | 9045cf88a58292b72fb4349d6beee2b4eed4f258 (patch) | |
tree | 9a91e2cee5417b55afecdb24d879230d54d92798 /source/blender/editors/space_view3d/drawobject.c | |
parent | b80c07321ba9611b19557d245c67f6933b80ec95 (diff) |
Cleanup: correct comment, unused var
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 6cfe6ecdf6b..10c0a7e611a 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -402,7 +402,8 @@ static const float cosval[CIRCLE_RESOL] = { }; /** - * \param viewmat_local is typically the 'rv3d->viewmatob'. + * \param viewmat_local_unit is typically the 'rv3d->viewmatob' + * copied into a 3x3 matrix and normalized. */ static void draw_xyz_wire(const float viewmat_local_unit[3][3], const float c[3], float size, int axis) { @@ -412,17 +413,15 @@ static void draw_xyz_wire(const float viewmat_local_unit[3][3], const float c[3] float v1[3] = {0.0f, 0.0f, 0.0f}, v2[3] = {0.0f, 0.0f, 0.0f}; float dim = size * 0.1f; - float dx[3], dy[3], dz[3]; + float dx[3], dy[3]; dx[0] = dim; dx[1] = 0.0f; dx[2] = 0.0f; dy[0] = 0.0f; dy[1] = dim; dy[2] = 0.0f; - dz[0] = 0.0f; dz[1] = 0.0f; dz[2] = dim; switch (axis) { case 0: /* x axis */ line_type = GL_LINES; - /* bottom left to top right */ negate_v3_v3(v1, dx); sub_v3_v3(v1, dy); |