[Bf-blender-cvs] [66110c6b98a] master: Code cleanup: fix warning with clang.
Brecht Van Lommel
noreply at git.blender.org
Mon Jul 31 19:42:32 CEST 2017
Commit: 66110c6b98ad5170cb935f5ddc8b7cacb7ca12c0
Author: Brecht Van Lommel
Date: Mon Jul 31 19:07:29 2017 +0200
Branches: master
https://developer.blender.org/rB66110c6b98ad5170cb935f5ddc8b7cacb7ca12c0
Code cleanup: fix warning with clang.
===================================================================
M source/blender/bmesh/tools/bmesh_bevel.c
===================================================================
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c
index 6673c5d25cf..92b65b94fb8 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -234,7 +234,7 @@ static bool nearly_parallel(const float d1[3], const float d2[3])
float ang;
ang = angle_v3v3(d1, d2);
- return (fabsf(ang) < BEVEL_EPSILON_ANG) || (fabsf(ang - M_PI) < BEVEL_EPSILON_ANG);
+ return (fabsf(ang) < BEVEL_EPSILON_ANG) || (fabsf(ang - (float)M_PI) < BEVEL_EPSILON_ANG);
}
/* Make a new BoundVert of the given kind, insert it at the end of the circular linked
More information about the Bf-blender-cvs
mailing list