Fix T66204, bevel numeric input respect scene units.
This commit is contained in:
parent
f8f3aca1d4
commit
7c8bf77e13
Notes:
blender-bot
2023-02-14 03:46:57 +01:00
Referenced by issue #66204, bevel numeric input not working correctly with scene units
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue