[Bf-blender-cvs] [7c8bf77e135] master: Fix T66204, bevel numeric input respect scene units.
Howard Trickey
noreply at git.blender.org
Sun Jun 30 17:36:13 CEST 2019
Commit: 7c8bf77e1351f5e44b28cb930c3b4c46589bc5ae
Author: Howard Trickey
Date: Sun Jun 30 11:31:45 2019 -0400
Branches: master
https://developer.blender.org/rB7c8bf77e1351f5e44b28cb930c3b4c46589bc5ae
Fix T66204, bevel numeric input respect scene units.
===================================================================
M source/blender/editors/mesh/editmesh_bevel.c
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list