diff options
author | Falk David <falkdavid@gmx.de> | 2021-02-14 22:52:23 +0300 |
---|---|---|
committer | Falk David <falkdavid@gmx.de> | 2021-02-14 22:52:23 +0300 |
commit | 80a8df72be99b250ca5c0fc305b586377f8abf53 (patch) | |
tree | c57dfb2668d3967d3547984749ff685906997592 /source/blender/editors | |
parent | 2f6d62bf88621c9a33aa01fae6548d89d0eaccd9 (diff) | |
parent | 2d3b29de4fc72d5e293deccd2317c001ede703e3 (diff) |
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/editmesh_inset.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_inset.c b/source/blender/editors/mesh/editmesh_inset.c index 8427458d9cc..9000a942e50 100644 --- a/source/blender/editors/mesh/editmesh_inset.c +++ b/source/blender/editors/mesh/editmesh_inset.c @@ -97,9 +97,20 @@ static void edbm_inset_update_header(wmOperator *op, bContext *C) outputNumInput(&opdata->num_input, flts_str, &sce->unit); } else { - BLI_snprintf(flts_str, NUM_STR_REP_LEN, "%f", RNA_float_get(op->ptr, "thickness")); - BLI_snprintf( - flts_str + NUM_STR_REP_LEN, NUM_STR_REP_LEN, "%f", RNA_float_get(op->ptr, "depth")); + BKE_unit_value_as_string(flts_str, + NUM_STR_REP_LEN, + RNA_float_get(op->ptr, "thickness"), + 4, + B_UNIT_LENGTH, + &sce->unit, + true); + BKE_unit_value_as_string(flts_str + NUM_STR_REP_LEN, + NUM_STR_REP_LEN, + RNA_float_get(op->ptr, "depth"), + 4, + B_UNIT_LENGTH, + &sce->unit, + true); } BLI_snprintf(msg, sizeof(msg), |