diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-07-26 15:00:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-07-26 15:00:13 +0300 |
commit | 5414ccbd4c79f3adb0606b3b906d4ddef2091b12 (patch) | |
tree | 774610afdacdfc196c0c39ab31bac876cea00572 /source/blender | |
parent | 850234c1b10a828678f1b91001f2731db807f7e2 (diff) | |
parent | 28b1c708958d10f107f386a47e4c8c26a9e6f1ad (diff) |
Merge branch 'blender-v2.90-release'
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 33c5343e410..b7fd6a50e6d 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -3062,9 +3062,9 @@ void BKE_object_dimensions_set_ex(Object *ob, } } - if (len[i] > 0.0f) { - - ob->scale[i] = copysignf(value[i] / len[i], ob->scale[i]); + const float scale = copysignf(value[i] / len[i], ob->scale[i]); + if (isfinite(scale)) { + ob->scale[i] = scale; } } } |