diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-07-21 14:34:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-21 14:36:10 +0300 |
commit | bafe22e8cea78991e3f8e4e435985f9a27a1587f (patch) | |
tree | ab718643b525946d91797dff1c1ce9d595241b57 /source/blender/editors/transform/transform_mode_shrink_fatten.c | |
parent | 6778ef4dcc6e8d92e3b2ec9b9ecaf1e54e5bf7b5 (diff) |
Fix T79112: Redo shrink/fatten uses negative values
The numbers in the redo panel were negated compared to the value
entered while transforming.
Diffstat (limited to 'source/blender/editors/transform/transform_mode_shrink_fatten.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_shrink_fatten.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_mode_shrink_fatten.c b/source/blender/editors/transform/transform_mode_shrink_fatten.c index 78d3efa0d69..6302bc96330 100644 --- a/source/blender/editors/transform/transform_mode_shrink_fatten.c +++ b/source/blender/editors/transform/transform_mode_shrink_fatten.c @@ -54,13 +54,13 @@ static void applyShrinkFatten(TransInfo *t, const int UNUSED(mval[2])) char str[UI_MAX_DRAW_STR]; size_t ofs = 0; - distance = -t->values[0]; + distance = t->values[0]; snapGridIncrement(t, &distance); applyNumInput(&t->num, &distance); - t->values_final[0] = -distance; + t->values_final[0] = distance; /* header print for NumInput */ ofs += BLI_strncpy_rlen(str + ofs, TIP_("Shrink/Fatten:"), sizeof(str) - ofs); |