diff options
author | Daniel <bestdani> | 2018-12-18 15:52:39 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-12-18 17:07:04 +0300 |
commit | 72456ee1987c458caab9cdb15265898564a5f775 (patch) | |
tree | 34e5f019ee2489dcbcae49cbf050b67aef04b1a7 /source/blender/editors | |
parent | d4dcad0ad6eb2efb7fbb02f5bf19a80853c404ec (diff) |
Fix T59009: UV unwrapp correct aspect fails on some shapes.
Differential Revision: https://developer.blender.org/D4095
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_parametrizer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c index 412d68a5d4d..c2775014519 100644 --- a/source/blender/editors/uvedit/uvedit_parametrizer.c +++ b/source/blender/editors/uvedit/uvedit_parametrizer.c @@ -4506,14 +4506,14 @@ void param_pack(ParamHandle *handle, float margin, bool do_rotate) if (phandle->ncharts == 0) return; - if (phandle->aspx != phandle->aspy) - param_scale(handle, 1.0f / phandle->aspx, 1.0f / phandle->aspy); - /* this could be its own function */ if (do_rotate) { param_pack_rotate(handle); } + if (phandle->aspx != phandle->aspy) + param_scale(handle, 1.0f / phandle->aspx, 1.0f / phandle->aspy); + /* we may not use all these boxes */ boxarray = MEM_mallocN(phandle->ncharts * sizeof(BoxPack), "BoxPack box"); |