Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/editors/uvedit/uvedit_parametrizer.c6
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");