[Bf-blender-cvs] [f9d7f690b24] master: Fix T69639: Bevel Info bar Width value not affected by Unit Scale
mano-wii
noreply at git.blender.org
Wed Sep 25 22:06:31 CEST 2019
Commit: f9d7f690b2407fc069339181f957d270dfd921a2
Author: mano-wii
Date: Wed Sep 25 17:05:10 2019 -0300
Branches: master
https://developer.blender.org/rBf9d7f690b2407fc069339181f957d270dfd921a2
Fix T69639: Bevel Info bar Width value not affected by Unit Scale
===================================================================
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 b4ef2620895..7afd72f33c9 100644
--- a/source/blender/editors/mesh/editmesh_bevel.c
+++ b/source/blender/editors/mesh/editmesh_bevel.c
@@ -148,9 +148,10 @@ static void edbm_bevel_update_header(bContext *C, wmOperator *op)
BLI_snprintf(offset_str, NUM_STR_REP_LEN, "%.1f%%", RNA_float_get(op->ptr, "offset_pct"));
}
else {
+ double offset_val = (double)RNA_float_get(op->ptr, "offset");
bUnit_AsString2(offset_str,
NUM_STR_REP_LEN,
- (double)RNA_float_get(op->ptr, "offset"),
+ offset_val * sce->unit.scale_length,
3,
B_UNIT_LENGTH,
&sce->unit,
More information about the Bf-blender-cvs
mailing list