diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-23 01:16:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-23 01:16:59 +0400 |
commit | d2a37d464a81959eb3409115f320c83af4398934 (patch) | |
tree | 20fea786bd6d1fc8113c3ea7c2c5dab437ff52ff /source/blender/editors/mesh | |
parent | 1a81499d413e748a26b5f51c5488f257b404e48e (diff) |
code cleanup: double promotion warnings
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 507ed2de07f..361244e9f13 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -4541,7 +4541,7 @@ static int edbm_bevel_modal(bContext *C, wmOperator *op, wmEvent *event) mdiff[1] = opdata->mcenter[1] - event->mval[1]; factor = len_v2(mdiff) / opdata->initial_length; - factor = MAX2(1.0 - factor, 0.0); + factor = MAX2(1.0f - factor, 0.0f); RNA_float_set(op->ptr, "percent", factor); @@ -4837,7 +4837,7 @@ static int edbm_inset_modal(bContext *C, wmOperator *op, wmEvent *event) else { amount = opdata->old_thickness - (len_v2(mdiff) - opdata->initial_length) / opdata->initial_length; - amount = MAX2(amount, 0.0); + amount = MAX2(amount, 0.0f); RNA_float_set(op->ptr, "thickness", amount); } |