diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-30 20:52:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-30 20:52:54 +0400 |
commit | e8605f9df9423bb0a7357157736ebe59f222c38f (patch) | |
tree | 3196069fe0c9ddf7537cb8d1cd9105f5faffeb9e /source/blender/editors/mesh | |
parent | 0502fc0112beb2dc0ea8b029fdde6e781f820404 (diff) |
quiet compiler warnings
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_bisect.c | 3 | ||||
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_bisect.c b/source/blender/editors/mesh/editmesh_bisect.c index 6a751a500ba..5968e0991d1 100644 --- a/source/blender/editors/mesh/editmesh_bisect.c +++ b/source/blender/editors/mesh/editmesh_bisect.c @@ -78,10 +78,11 @@ static bool mesh_bisect_interactive_calc( int x_end = RNA_int_get(op->ptr, "xend"); int y_end = RNA_int_get(op->ptr, "yend"); + /* reference location (some point infront of the view) for finding a point on a plane */ const float *co_ref = rv3d->ofs; float co_a_ss[2] = {x_start, y_start}, co_b_ss[2] = {x_end, y_end}, co_delta_ss[2]; float co_a[3], co_b[3]; - float zfac = ED_view3d_calc_zfac(rv3d, co_ref, NULL); + const float zfac = ED_view3d_calc_zfac(rv3d, co_ref, NULL); opdata = gesture->userdata; diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index 5fe0019281f..70bfd6fac6d 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -1243,8 +1243,8 @@ static BMEdgeHit *knife_edge_tri_isect(KnifeTool_OpData *kcd, BMBVHTree *bmtree, } n_isects = 0; - if (fabs(dist_to_plane_v3(kfe->v1->cageco, tri_plane)) < KNIFE_FLT_EPS && - fabs(dist_to_plane_v3(kfe->v2->cageco, tri_plane)) < KNIFE_FLT_EPS) { + if (fabsf(dist_to_plane_v3(kfe->v1->cageco, tri_plane)) < KNIFE_FLT_EPS && + fabsf(dist_to_plane_v3(kfe->v2->cageco, tri_plane)) < KNIFE_FLT_EPS) { /* both kfe ends are in cutting triangle */ copy_v3_v3(isects[0], kfe->v1->cageco); copy_v3_v3(isects[1], kfe->v2->cageco); |