[Bf-blender-cvs] [72456ee1987] blender2.8: Fix T59009: UV unwrapp correct aspect fails on some shapes.

Daniel noreply at git.blender.org
Tue Dec 18 15:07:43 CET 2018


Commit: 72456ee1987c458caab9cdb15265898564a5f775
Author: Daniel
Date:   Tue Dec 18 13:52:39 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB72456ee1987c458caab9cdb15265898564a5f775

Fix T59009: UV unwrapp correct aspect fails on some shapes.

Differential Revision: https://developer.blender.org/D4095

===================================================================

M	source/blender/editors/uvedit/uvedit_parametrizer.c

===================================================================

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");



More information about the Bf-blender-cvs mailing list