diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-26 23:00:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-26 23:00:15 +0400 |
commit | c1649dcf103919b90ea8d8f90bef5ea9eb5ca674 (patch) | |
tree | aba7784d8596f0e1265f1e2474ff5557d8431b73 /source/blender/editors | |
parent | 230d66796b36917992348939b3dad85ee32afdec (diff) |
bugfix [#23038] View rotation snap has left and right view names swapped arround.
also noticed some spelling errors.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 6 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_input.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 1385482212e..8ed987d21fb 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -403,13 +403,13 @@ static const float thres = 0.93f; //cos(20 deg); #define SIN45 COS45 static float snapquats[39][6] = { - /*{q0, q1, q3, q4, view, oposite_direction}*/ + /*{q0, q1, q3, q4, view, opposite_direction}*/ {COS45, -SIN45, 0.0, 0.0, RV3D_VIEW_FRONT, 0}, //front {0.0, 0.0, -SIN45, -SIN45, RV3D_VIEW_BACK, 0}, //back {1.0, 0.0, 0.0, 0.0, RV3D_VIEW_TOP, 0}, //top {0.0, -1.0, 0.0, 0.0, RV3D_VIEW_BOTTOM, 0}, //bottom -{0.5, -0.5, -0.5, -0.5, RV3D_VIEW_LEFT, 0}, //left -{0.5, -0.5, 0.5, 0.5, RV3D_VIEW_RIGHT, 0}, //right +{0.5, -0.5, -0.5, -0.5, RV3D_VIEW_RIGHT, 0}, //left +{0.5, -0.5, 0.5, 0.5, RV3D_VIEW_LEFT, 0}, //right /* some more 45 deg snaps */ {0.65328145027160645, -0.65328145027160645, 0.27059805393218994, 0.27059805393218994, 0, 0}, diff --git a/source/blender/editors/transform/transform_input.c b/source/blender/editors/transform/transform_input.c index b7cb34802cc..54a86b3dca1 100644 --- a/source/blender/editors/transform/transform_input.c +++ b/source/blender/editors/transform/transform_input.c @@ -237,7 +237,7 @@ void InputAngle(TransInfo *t, MouseInput *mi, short mval[2], float output[3]) if( (dx1*dy2-dx2*dy1)>0.0 ) dphi= -dphi; /* If the angle is zero, because of lack of precision close to the 1.0 value in acos - * approximate the angle with the oposite side of the normalized triangle + * approximate the angle with the opposite side of the normalized triangle * This is a good approximation here since the smallest acos value seems to be around * 0.02 degree and lower values don't even have a 0.01% error compared to the approximation * */ |