Cleanup: warnings & spelling
authorCampbell Barton <ideasman42@gmail.com>
Wed, 2 Dec 2015 02:15:52 +0000 (13:15 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 2 Dec 2015 02:15:52 +0000 (13:15 +1100)
extern/libmv/libmv/simple_pipeline/camera_intrinsics.h
intern/cycles/kernel/geom/geom_qbvh.h
intern/cycles/render/graph.cpp
intern/cycles/util/util_math_fast.h
source/blender/bmesh/tools/bmesh_path.c
source/blender/modifiers/intern/MOD_weightvgproximity.c

index 6a3ade81089b7ea05010513c1ebe57026c6aefe4..1a8bf7a1c87bf331a44e49b1a3bc097e2cc511ba 100644 (file)
@@ -197,7 +197,7 @@ class CameraIntrinsics {
                                 double *normalized_x,
                                 double *normalized_y) const = 0;
 
-  // Distort an image using the current camera instrinsics
+  // Distort an image using the current camera intrinsics
   //
   // The distorted image is computed in output_buffer using samples from
   // input_buffer. Both buffers should be width x height x channels sized.
@@ -226,7 +226,7 @@ class CameraIntrinsics {
                      int channels,
                      PixelType *output_buffer);
 
-  // Undistort an image using the current camera instrinsics
+  // Undistort an image using the current camera intrinsics
   //
   // The undistorted image is computed in output_buffer using samples from
   // input_buffer. Both buffers should be width x height x channels sized.
index 37deaac0800232f6415ea28ebda7aa9ee565caaa..2a2d7822eee3107a52363691ae423a2c2654fdc6 100644 (file)
@@ -19,7 +19,7 @@ struct QBVHStackItem {
        float dist;
 };
 
-/* TOOD(sergey): Investigate if using instrinsics helps for both
+/* TOOD(sergey): Investigate if using intrinsics helps for both
  * stack item swap and float comparison.
  */
 ccl_device_inline void qbvh_item_swap(QBVHStackItem *__restrict a,
index 2977555b410ab6b010c44068c7faa8dec76e3d91..ffd99626f8132b8d68620f958cf09d61b59a4d88 100644 (file)
@@ -631,7 +631,7 @@ void ShaderGraph::break_cycles(ShaderNode *node, vector<bool>& visited, vector<b
 void ShaderGraph::clean(Scene *scene)
 {
        /* Graph simplification:
-        *  1: Remove unnecesarry nodes
+        *  1: Remove unnecessary nodes
         *  2: Constant folding
         *  3: Simplification
         *  4: De-duplication
index 867de78e7a6f44039650741b91244c563cd0b9f5..efe0698e1dcbc3e601d0ccdd4363f3c67311ac2c 100644 (file)
@@ -247,7 +247,7 @@ ccl_device float fast_sinpif(float x)
         * The basic idea of this approximation starts with the coarse approximation:
         *      sin(pi*x) ~= f(x) =  4 * (x - x * abs(x))
         *
-        * This approximation always _over_ estimates the target. On the otherhand,
+        * This approximation always _over_ estimates the target. On the other hand,
         * the curve:
         *      sin(pi*x) ~= f(x) * abs(f(x)) / 4
         *
index 1c05b8ae5d4357f358b68b15612c966190b7f41e..bc9ab0844679beda2317cb20ea99057ef2c4731b 100644 (file)
@@ -316,10 +316,10 @@ static float facetag_cut_cost(BMFace *f_a, BMFace *f_b, BMEdge *e)
                float ix_e[3], ix_f[3], f;
                isect_line_line_v3(e->v1->co, e->v2->co, f_a_cent, f_b_cent, ix_e, ix_f);
                f = line_point_factor_v3(ix_e, e->v1->co, e->v2->co);
-               if (f < 0.0) {
+               if (f < 0.0f) {
                        copy_v3_v3(e_cent, e->v1->co);
                }
-               else if (f > 1.0) {
+               else if (f > 1.0f) {
                        copy_v3_v3(e_cent, e->v2->co);
                }
                else {
index 29a5e2d2d75b2bbbf93429226b732c8b5a907176..0a73a1871615ad8a7d5c09c28510ae72ae8c9164 100644 (file)
@@ -136,7 +136,7 @@ static void get_vert2geom_distance(int numVerts, float (*v_cos)[3],
                                    DerivedMesh *target, const SpaceTransform *loc2trgt)
 {
        Vert2GeomData data = {0};
-       Vert2GeomDataChunk data_chunk = {0};
+       Vert2GeomDataChunk data_chunk = {{{0}}};
 
        BVHTreeFromMesh treeData_v = {NULL};
        BVHTreeFromMesh treeData_e = {NULL};