From fc9505c9c5d513bc756f147dff4509a05123dc71 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 2 Dec 2015 13:15:52 +1100 Subject: Cleanup: warnings & spelling --- source/blender/bmesh/tools/bmesh_path.c | 4 ++-- source/blender/modifiers/intern/MOD_weightvgproximity.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source') 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}; -- cgit v1.2.3