Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-02 05:15:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-02 05:15:52 +0300
commitfc9505c9c5d513bc756f147dff4509a05123dc71 (patch)
tree8350dee688df8b8ed47cde70c90f86417d008924
parent5cbf58ce8b5463a0c3296a753c26615c357aca17 (diff)
Cleanup: warnings & spelling
-rw-r--r--extern/libmv/libmv/simple_pipeline/camera_intrinsics.h4
-rw-r--r--intern/cycles/kernel/geom/geom_qbvh.h2
-rw-r--r--intern/cycles/render/graph.cpp2
-rw-r--r--intern/cycles/util/util_math_fast.h2
-rw-r--r--source/blender/bmesh/tools/bmesh_path.c4
-rw-r--r--source/blender/modifiers/intern/MOD_weightvgproximity.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/extern/libmv/libmv/simple_pipeline/camera_intrinsics.h b/extern/libmv/libmv/simple_pipeline/camera_intrinsics.h
index 6a3ade81089..1a8bf7a1c87 100644
--- a/extern/libmv/libmv/simple_pipeline/camera_intrinsics.h
+++ b/extern/libmv/libmv/simple_pipeline/camera_intrinsics.h
@@ -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.
diff --git a/intern/cycles/kernel/geom/geom_qbvh.h b/intern/cycles/kernel/geom/geom_qbvh.h
index 37deaac0800..2a2d7822eee 100644
--- a/intern/cycles/kernel/geom/geom_qbvh.h
+++ b/intern/cycles/kernel/geom/geom_qbvh.h
@@ -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,
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp
index 2977555b410..ffd99626f81 100644
--- a/intern/cycles/render/graph.cpp
+++ b/intern/cycles/render/graph.cpp
@@ -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
diff --git a/intern/cycles/util/util_math_fast.h b/intern/cycles/util/util_math_fast.h
index 867de78e7a6..efe0698e1dc 100644
--- a/intern/cycles/util/util_math_fast.h
+++ b/intern/cycles/util/util_math_fast.h
@@ -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
*
diff --git a/source/blender/bmesh/tools/bmesh_path.c b/source/blender/bmesh/tools/bmesh_path.c
index 1c05b8ae5d4..bc9ab084467 100644
--- a/source/blender/bmesh/tools/bmesh_path.c
+++ b/source/blender/bmesh/tools/bmesh_path.c
@@ -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 {
diff --git a/source/blender/modifiers/intern/MOD_weightvgproximity.c b/source/blender/modifiers/intern/MOD_weightvgproximity.c
index 29a5e2d2d75..0a73a187161 100644
--- a/source/blender/modifiers/intern/MOD_weightvgproximity.c
+++ b/source/blender/modifiers/intern/MOD_weightvgproximity.c
@@ -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};