diff --git a/intern/ghost/intern/GHOST_Window.h b/intern/ghost/intern/GHOST_Window.h index 69d0eea838c..a3eb116780f 100644 --- a/intern/ghost/intern/GHOST_Window.h +++ b/intern/ghost/intern/GHOST_Window.h @@ -41,8 +41,8 @@ class GHOST_Window : public GHOST_IWindow { * Constructor. * Creates a new window and opens it. * To check if the window was created properly, use the getValid() method. - * \param width: The width the window. - * \param height: The height the window. + * \param width: The width of the window. + * \param height: The height of the window. * \param state: The state the window is initially opened with. * \param wantStereoVisual: Stereo visual for quad buffered stereo. * \param exclusive: Use to show the window ontop and ignore others (used full-screen). diff --git a/intern/iksolver/intern/IK_QJacobian.cpp b/intern/iksolver/intern/IK_QJacobian.cpp index 19d711f3fe1..7e4d48e37c9 100644 --- a/intern/iksolver/intern/IK_QJacobian.cpp +++ b/intern/iksolver/intern/IK_QJacobian.cpp @@ -196,12 +196,12 @@ void IK_QJacobian::InvertSDLS() // Compute the dampeds least squeares pseudo inverse of J. // // Since J is usually not invertible (most of the times it's not even - // square), the psuedo inverse is used. This gives us a least squares + // square), the pseudo inverse is used. This gives us a least squares // solution. // // This is fine when the J*Jt is of full rank. When J*Jt is near to // singular the least squares inverse tries to minimize |J(dtheta) - dX)| - // and doesn't try to minimize dTheta. This results in eratic changes in + // and doesn't try to minimize dTheta. This results in erratic changes in // angle. The damped least squares minimizes |dtheta| to try and reduce this // erratic behavior. // @@ -323,7 +323,7 @@ void IK_QJacobian::InvertDLS() // least squares solution. This is fine when the m_jjt is // of full rank. When m_jjt is near to singular the least squares // inverse tries to minimize |J(dtheta) - dX)| and doesn't - // try to minimize dTheta. This results in eratic changes in angle. + // try to minimize dTheta. This results in erratic changes in angle. // Damped least squares minimizes |dtheta| to try and reduce this // erratic behavior. diff --git a/intern/libmv/libmv/autotrack/autotrack.cc b/intern/libmv/libmv/autotrack/autotrack.cc index afdf48912e5..a407639ecfa 100644 --- a/intern/libmv/libmv/autotrack/autotrack.cc +++ b/intern/libmv/libmv/autotrack/autotrack.cc @@ -178,7 +178,7 @@ bool AutoTrack::TrackMarker(Marker* tracked_marker, return false; } - // Store original position befoer tracking, so we can claculate offset later. + // Store original position before tracking, so we can claculate offset later. Vec2f original_center = tracked_marker->center; // Do the tracking! diff --git a/intern/libmv/libmv/build/build_config.h b/intern/libmv/libmv/build/build_config.h index 7029a36a7dd..1d87660f87c 100644 --- a/intern/libmv/libmv/build/build_config.h +++ b/intern/libmv/libmv/build/build_config.h @@ -239,7 +239,7 @@ // Check what is the latest C++ specification the compiler supports. // // NOTE: Use explicit definition here to avoid expansion-to-defined warning from -// being geenrated. While this will most likely a false-positive warning in this +// being generated. While this will most likely a false-positive warning in this // particular case, that warning might be helpful to catch errors elsewhere. // C++11 check. diff --git a/intern/libmv/libmv/image/tuple.h b/intern/libmv/libmv/image/tuple.h index 447bf0cc81c..3f4b58886e4 100644 --- a/intern/libmv/libmv/image/tuple.h +++ b/intern/libmv/libmv/image/tuple.h @@ -25,7 +25,7 @@ namespace libmv { -// A vector of elements with fixed lenght and deep copy semantics. +// A vector of elements with fixed length and deep copy semantics. template class Tuple { public: diff --git a/intern/libmv/libmv/multiview/panography.h b/intern/libmv/libmv/multiview/panography.h index 5860a34d1fd..6b87f25bdda 100644 --- a/intern/libmv/libmv/multiview/panography.h +++ b/intern/libmv/libmv/multiview/panography.h @@ -38,7 +38,7 @@ namespace libmv { // The 2-point algorithm solves for the rotation of the camera with a single // focal length (4 degrees of freedom). // -// Compute from 1 to 3 possible focal lenght for 2 point correspondences. +// Compute from 1 to 3 possible focal length for 2 point correspondences. // Suppose that the cameras share the same optical center and focal lengths: // // Image 1 => H*x = x' => Image 2 diff --git a/intern/libmv/libmv/numeric/numeric.h b/intern/libmv/libmv/numeric/numeric.h index e3ebdb5a4bb..52f3b8d6a78 100644 --- a/intern/libmv/libmv/numeric/numeric.h +++ b/intern/libmv/libmv/numeric/numeric.h @@ -261,7 +261,7 @@ Mat3 RotationRodrigues(const Vec3& axis); // positive z-axis, and y is oriented close to up. Mat3 LookAt(Vec3 center); -// Return a diagonal matrix from a vector containg the diagonal values. +// Return a diagonal matrix from a vector containing the diagonal values. template inline Mat Diag(const TVec& x) { return x.asDiagonal(); diff --git a/intern/libmv/libmv/numeric/poly.h b/intern/libmv/libmv/numeric/poly.h index a3d3801a399..c1deee42bf9 100644 --- a/intern/libmv/libmv/numeric/poly.h +++ b/intern/libmv/libmv/numeric/poly.h @@ -50,7 +50,7 @@ int SolveCubicPolynomial(Real a, Real b, Real c, Real* x0, Real* x1, Real* x2) { Real CQ3 = 2916 * q * q * q; if (R == 0 && Q == 0) { - // Tripple root in one place. + // Triple root in one place. *x0 = *x1 = *x2 = -a / 3; return 3; diff --git a/intern/memutil/MEM_RefCounted.h b/intern/memutil/MEM_RefCounted.h index 319effdebaf..71be4b62f12 100644 --- a/intern/memutil/MEM_RefCounted.h +++ b/intern/memutil/MEM_RefCounted.h @@ -41,7 +41,7 @@ class MEM_RefCounted { public: /** - * Constructs a a shared object. + * Constructs a shared object. */ MEM_RefCounted() : m_refCount(1) { diff --git a/intern/numaapi/source/build_config.h b/intern/numaapi/source/build_config.h index e7c332483b5..58c07ac85ab 100644 --- a/intern/numaapi/source/build_config.h +++ b/intern/numaapi/source/build_config.h @@ -234,7 +234,7 @@ // Check what is the latest C++ specification the compiler supports. // // NOTE: Use explicit definition here to avoid expansion-to-defined warning from -// being geenrated. While this will most likely a false-positive warning in this +// being generated. While this will most likely a false-positive warning in this // particular case, that warning might be helpful to catch errors elsewhere. // C++11 check. diff --git a/intern/opencolorio/gpu_shader_display_transform.glsl b/intern/opencolorio/gpu_shader_display_transform.glsl index d94ff9230e8..f5a7a7bf45d 100644 --- a/intern/opencolorio/gpu_shader_display_transform.glsl +++ b/intern/opencolorio/gpu_shader_display_transform.glsl @@ -119,7 +119,7 @@ vec4 curvemapping_evaluate_premulRGBF(vec4 col) /* Using a triangle distribution which gives a more final uniform noise. * See Banding in Games:A Noisy Rant(revision 5) Mikkel Gjøl, Playdead (slide 27) */ -/* GPUs are rounding before writting to framebuffer so we center the distribution around 0.0. */ +/* GPUs are rounding before writing to framebuffer so we center the distribution around 0.0. */ /* Return triangle noise in [-1..1[ range */ float dither_random_value(vec2 co) { diff --git a/intern/opensubdiv/internal/topology/mesh_topology.cc b/intern/opensubdiv/internal/topology/mesh_topology.cc index 29c387876ef..461a85fbdfb 100644 --- a/intern/opensubdiv/internal/topology/mesh_topology.cc +++ b/intern/opensubdiv/internal/topology/mesh_topology.cc @@ -183,7 +183,7 @@ void MeshTopology::setNumFaces(int num_faces) num_faces_ = num_faces; // NOTE: Extra element to store fake face past the last real one to make it - // possible to calculate number of verticies in the last face. + // possible to calculate number of vertices in the last face. faces_first_vertex_index_.resize(num_faces + 1, 0); } diff --git a/intern/opensubdiv/internal/topology/mesh_topology.h b/intern/opensubdiv/internal/topology/mesh_topology.h index 861614482ef..a2fad890d9d 100644 --- a/intern/opensubdiv/internal/topology/mesh_topology.h +++ b/intern/opensubdiv/internal/topology/mesh_topology.h @@ -111,7 +111,7 @@ class MeshTopology { // Pipeline related. // This function is to be called when number of vertices, edges, faces, and - // face-verticies are known. + // face-vertices are known. // // Usually is called from the end of topology refiner factory's // resizeComponentTopology(). @@ -162,7 +162,7 @@ class MeshTopology { int num_faces_; - // Continuous array of all verticies of all faces: + // Continuous array of all vertices of all faces: // [vertex indices of face 0][vertex indices of face 1] .. [vertex indices of face n]. vector face_vertex_indices_; diff --git a/intern/opensubdiv/opensubdiv_converter_capi.h b/intern/opensubdiv/opensubdiv_converter_capi.h index 6f914a20bf5..164a6dfeb03 100644 --- a/intern/opensubdiv/opensubdiv_converter_capi.h +++ b/intern/opensubdiv/opensubdiv_converter_capi.h @@ -135,7 +135,7 @@ typedef struct OpenSubdiv_Converter { // specified in precalcUVLayer(). int (*getNumUVCoordinates)(const struct OpenSubdiv_Converter *converter); // For the given face index and its corner (known as loop in Blender) - // get corrsponding UV coordinate index. + // get corresponding UV coordinate index. int (*getFaceCornerUVIndex)(const struct OpenSubdiv_Converter *converter, const int face_index, const int corner_index); diff --git a/intern/utfconv/utfconv.c b/intern/utfconv/utfconv.c index 00094b84042..673c567070c 100644 --- a/intern/utfconv/utfconv.c +++ b/intern/utfconv/utfconv.c @@ -56,7 +56,7 @@ size_t count_utf_8_from_16(const wchar_t *string16) } else { if (u < 0xE000) { - /*illigal*/; + /*illegal*/; } else { count += 3;