From c1649dcf103919b90ea8d8f90bef5ea9eb5ca674 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 26 Jul 2010 19:00:15 +0000 Subject: [PATCH] bugfix [#23038] View rotation snap has left and right view names swapped arround. also noticed some spelling errors. --- intern/audaspace/intern/AUD_IReader.h | 2 +- intern/audaspace/intern/AUD_StreamBufferFactory.cpp | 2 +- source/blender/editors/space_view3d/view3d_edit.c | 6 +++--- source/blender/editors/transform/transform_input.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/intern/audaspace/intern/AUD_IReader.h b/intern/audaspace/intern/AUD_IReader.h index 4b563100659..02a46098d32 100644 --- a/intern/audaspace/intern/AUD_IReader.h +++ b/intern/audaspace/intern/AUD_IReader.h @@ -60,7 +60,7 @@ public: virtual void seek(int position)=0; /** - * Returns an aproximated length of the source in samples. + * Returns an approximated length of the source in samples. * For readers of the type buffer this has to return a correct value! * \return The length as sample count. May be negative if unknown. * \see getType diff --git a/intern/audaspace/intern/AUD_StreamBufferFactory.cpp b/intern/audaspace/intern/AUD_StreamBufferFactory.cpp index 4d2cd9e2505..cb97e6125fb 100644 --- a/intern/audaspace/intern/AUD_StreamBufferFactory.cpp +++ b/intern/audaspace/intern/AUD_StreamBufferFactory.cpp @@ -44,7 +44,7 @@ AUD_StreamBufferFactory::AUD_StreamBufferFactory(AUD_IFactory* factory) int index = 0; sample_t* buffer; - // get an aproximated size if possible + // get an approximated size if possible int size = reader->getLength(); if(size <= 0) 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 * */