diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2019-06-30 18:31:45 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2019-06-30 18:32:38 +0300 |
commit | 7c8bf77e1351f5e44b28cb930c3b4c46589bc5ae (patch) | |
tree | 2e8ee9430b7cf26326c52c92dd46b010c387460e | |
parent | f8f3aca1d44a8119d37e901f0f900bf75618eeaa (diff) |
Fix T66204, bevel numeric input respect scene units.
-rw-r--r-- | source/blender/editors/mesh/editmesh_bevel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_bevel.c b/source/blender/editors/mesh/editmesh_bevel.c index 78b4cfe38d4..b4ef2620895 100644 --- a/source/blender/editors/mesh/editmesh_bevel.c +++ b/source/blender/editors/mesh/editmesh_bevel.c @@ -263,14 +263,14 @@ static bool edbm_bevel_init(bContext *C, wmOperator *op, const bool is_modal) initNumInput(&opdata->num_input[i]); opdata->num_input[i].idx_max = 0; opdata->num_input[i].val_flag[0] |= NUM_NO_NEGATIVE; + opdata->num_input[i].unit_type[0] = B_UNIT_NONE; if (i == SEGMENTS_VALUE) { opdata->num_input[i].val_flag[0] |= NUM_NO_FRACTION | NUM_NO_ZERO; } if (i == OFFSET_VALUE) { opdata->num_input[i].unit_sys = scene->unit.system; + opdata->num_input[i].unit_type[0] = B_UNIT_LENGTH; } - /* Not sure this is a factor or a unit? */ - opdata->num_input[i].unit_type[0] = B_UNIT_NONE; } /* avoid the cost of allocating a bm copy */ |