[Bf-blender-cvs] [4c6a72a] master: Fix T38283: UV unwrap giving wrong results with particular meshes.

Brecht Van Lommel noreply at git.blender.org
Mon Jan 20 18:51:22 CET 2014


Commit: 4c6a72a7d8102b93307c13eedd81ecf0c6051d8b
Author: Brecht Van Lommel
Date:   Mon Jan 20 18:49:09 2014 +0100
https://developer.blender.org/rB4c6a72a7d8102b93307c13eedd81ecf0c6051d8b

Fix T38283: UV unwrap giving wrong results with particular meshes.

LSCM auto pinning where it picks two vertices on opposite sides of the outer
UV island boundary would in some cases give the same 3D coordinate, which
causes UV unwrap to give poor results.

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

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 66e4c01..40d2cc7 100644
--- a/source/blender/editors/uvedit/uvedit_parametrizer.c
+++ b/source/blender/editors/uvedit/uvedit_parametrizer.c
@@ -2956,7 +2956,7 @@ static PBool p_chart_symmetry_pins(PChart *chart, PEdge *outer, PVert **pin1, PV
 
 	p_chart_pin_positions(chart, pin1, pin2);
 
-	return P_TRUE;
+	return !equals_v3v3((*pin1)->co, (*pin2)->co);
 }
 
 static void p_chart_extrema_verts(PChart *chart, PVert **pin1, PVert **pin2)




More information about the Bf-blender-cvs mailing list