Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-15 05:52:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-15 06:40:40 +0400
commite5c7535bebc37e04489fac4e88beca8cc5677d7d (patch)
tree1bbbb649c339ae052a0222167818d94e9f6c55a0 /source/blender/bmesh/tools
parentda8619fe23d22a5009868302bac05d965adb76ac (diff)
Code Cleanup: float/double promotions
Diffstat (limited to 'source/blender/bmesh/tools')
-rw-r--r--source/blender/bmesh/tools/bmesh_bevel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c
index 47898205ad3..836588c1c02 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)