[Bf-blender-cvs] [9045cf8] master: Cleanup: correct comment, unused var
Campbell Barton
noreply at git.blender.org
Wed Feb 3 05:14:10 CET 2016
Commit: 9045cf88a58292b72fb4349d6beee2b4eed4f258
Author: Campbell Barton
Date: Wed Feb 3 11:51:58 2016 +1100
Branches: master
https://developer.blender.org/rB9045cf88a58292b72fb4349d6beee2b4eed4f258
Cleanup: correct comment, unused var
===================================================================
M source/blender/editors/space_view3d/drawobject.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 6cfe6ec..10c0a7e 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);
More information about the Bf-blender-cvs
mailing list