[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30766] trunk/blender: bugfix [#23038] View rotation snap has left and right view names swapped arround.

Campbell Barton ideasman42 at gmail.com
Mon Jul 26 21:00:15 CEST 2010


Revision: 30766
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30766
Author:   campbellbarton
Date:     2010-07-26 21:00:15 +0200 (Mon, 26 Jul 2010)

Log Message:
-----------
bugfix [#23038] View rotation snap has left and right view names swapped arround.
also noticed some spelling errors.

Modified Paths:
--------------
    trunk/blender/intern/audaspace/intern/AUD_IReader.h
    trunk/blender/intern/audaspace/intern/AUD_StreamBufferFactory.cpp
    trunk/blender/source/blender/editors/space_view3d/view3d_edit.c
    trunk/blender/source/blender/editors/transform/transform_input.c

Modified: trunk/blender/intern/audaspace/intern/AUD_IReader.h
===================================================================
--- trunk/blender/intern/audaspace/intern/AUD_IReader.h	2010-07-26 18:50:38 UTC (rev 30765)
+++ trunk/blender/intern/audaspace/intern/AUD_IReader.h	2010-07-26 19:00:15 UTC (rev 30766)
@@ -60,7 +60,7 @@
 	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

Modified: trunk/blender/intern/audaspace/intern/AUD_StreamBufferFactory.cpp
===================================================================
--- trunk/blender/intern/audaspace/intern/AUD_StreamBufferFactory.cpp	2010-07-26 18:50:38 UTC (rev 30765)
+++ trunk/blender/intern/audaspace/intern/AUD_StreamBufferFactory.cpp	2010-07-26 19:00:15 UTC (rev 30766)
@@ -44,7 +44,7 @@
 	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)

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2010-07-26 18:50:38 UTC (rev 30765)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2010-07-26 19:00:15 UTC (rev 30766)
@@ -403,13 +403,13 @@
 #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},

Modified: trunk/blender/source/blender/editors/transform/transform_input.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_input.c	2010-07-26 18:50:38 UTC (rev 30765)
+++ trunk/blender/source/blender/editors/transform/transform_input.c	2010-07-26 19:00:15 UTC (rev 30766)
@@ -237,7 +237,7 @@
 	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
 	 * */





More information about the Bf-blender-cvs mailing list