diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-04 11:58:18 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-04 11:58:18 +0300 |
commit | 538d58745a23acfc729dd09eaacb773a6f6b364f (patch) | |
tree | 9e2759a3297309db6d373bd8d9e6683957804640 /source | |
parent | 1b8c3774a86ebc04fceb9cdf787f9b731f0ebb96 (diff) |
Object: don't flip scale when setting dimensions
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 80a59216f60..14fafc130f4 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -2563,7 +2563,7 @@ void BKE_object_dimensions_set(Object *ob, const float value[3], int axis_mask) for (int i = 0; i < 3; i++) { if (((1 << i) & axis_mask) == 0) { if (len[i] > 0.0f) { - ob->size[i] = value[i] / len[i]; + ob->size[i] = copysignf(value[i] / len[i], ob->size[i]); } } } |