quiet compiler warnings

This commit is contained in:
2013-08-30 16:52:54 +00:00
parent 0502fc0112
commit e8605f9df9
3 changed files with 4 additions and 11 deletions

View File

@@ -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);