[Bf-blender-cvs] [e5c7535] master: Code Cleanup: float/double promotions
Campbell Barton
noreply at git.blender.org
Wed Jan 15 03:42:30 CET 2014
Commit: e5c7535bebc37e04489fac4e88beca8cc5677d7d
Author: Campbell Barton
Date: Wed Jan 15 12:52:20 2014 +1100
https://developer.blender.org/rBe5c7535bebc37e04489fac4e88beca8cc5677d7d
Code Cleanup: float/double promotions
===================================================================
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 4789820..836588c 100644
--- a/source/blender/bmesh/tools/bmesh_bevel.c
+++ b/source/blender/bmesh/tools/bmesh_bevel.c
@@ -1117,7 +1117,7 @@ static void get_profile_point(const Profile *pro, float u, float r_co[3])
p[1] = cosf(angle);
p[2] = 0.0f;
if (r != PRO_CIRCLE_R) {
- w = powf(powf(p[0], r) + pow(p[1], r), -1.0f / r);
+ w = powf(powf(p[0], r) + powf(p[1], r), -1.0f / r);
mul_v2_fl(p, w);
}
mul_v3_m4v3(co, m, p);
@@ -2418,8 +2418,8 @@ static VMesh *make_cube_corner_straight(MemArena *mem_arena, int nseg)
if (!is_canon(vm, i, j, k))
continue;
co[i] = 1.0f;
- co[(i + 1) % 3] = (float) k * 2.0 / (float) nseg;
- co[(i + 2) % 3] = (float) j * 2.0 / (float) nseg;
+ co[(i + 1) % 3] = (float)k * 2.0f / (float)nseg;
+ co[(i + 2) % 3] = (float)j * 2.0f / (float)nseg;
copy_v3_v3(mesh_vert(vm, i, j, k)->co, co);
}
}
@@ -2598,9 +2598,9 @@ static VMesh *adj_vmesh(BevelParams *bp, BevVert *bv)
sub_v3_v3v3(cob, co, coa);
add_v3_v3(cob, co);
r = bp->pro_super_r;
- if (r == 1.0)
+ if (r == 1.0f)
fullness = 0.0f;
- else if (r > 1.0) {
+ else if (r > 1.0f) {
if (bp->vertex_only)
fac = 0.25f;
else if (r == PRO_SQUARE_R)
More information about the Bf-blender-cvs
mailing list