[Bf-blender-cvs] [3d6b8bd] master: Fix implicit double to float conversion caused by use of double precision M_PI
Sergey Sharybin
noreply at git.blender.org
Fri Feb 19 17:41:59 CET 2016
Commit: 3d6b8bd50662c4cf3e4e552f86b7ba43ce39da73
Author: Sergey Sharybin
Date: Fri Feb 19 17:40:45 2016 +0100
Branches: master
https://developer.blender.org/rB3d6b8bd50662c4cf3e4e552f86b7ba43ce39da73
Fix implicit double to float conversion caused by use of double precision M_PI
===================================================================
M source/blender/editors/uvedit/uvedit_parametrizer.c
===================================================================
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c
index 95d88aa..59f9cd1 100644
--- a/source/blender/editors/uvedit/uvedit_parametrizer.c
+++ b/source/blender/editors/uvedit/uvedit_parametrizer.c
@@ -4183,7 +4183,7 @@ static void p_add_ngon(ParamHandle *handle, ParamKey key, int nverts,
angle = (float)(2.0 * M_PI) - angle;
float other_angle = p_vec_angle(co[v2], co[v0], co[v1]);
- float shape = fabsf(M_PI - angle - 2.0f * other_angle);
+ float shape = fabsf((float)M_PI - angle - 2.0f * other_angle);
if (fabsf(angle - minangle) < 0.01f) {
/* for nearly equal angles, try to get well shaped triangles */
More information about the Bf-blender-cvs
mailing list