diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-15 14:31:07 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-15 14:31:07 +0400 |
commit | cda6230a852c51dfe713b221132cbf30be6a1d5d (patch) | |
tree | f6ebf67d5aec3a7db82744c0d9696472b47242d5 /source/blender/editors/uvedit/uvedit_parametrizer.c | |
parent | db53faffa3e86fb44bfa2a025a5261eb69d3bc09 (diff) |
Fix #30952: uv unwrapper not working as well as 2.62 on some topologies, let the
unwrapper itself decide how to split quads since it has specific checks for the
best unwrapping split built in, gives better results.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_parametrizer.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_parametrizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c index d2c711fccf3..c99d6e992b7 100644 --- a/source/blender/editors/uvedit/uvedit_parametrizer.c +++ b/source/blender/editors/uvedit/uvedit_parametrizer.c @@ -742,7 +742,7 @@ static PEdge *p_edge_lookup(PHandle *handle, PHashKey *vkeys) return NULL; } -int p_face_exists(ParamHandle *phandle, ParamKey *pvkeys, int i1, int i2, int i3) +static int p_face_exists(ParamHandle *phandle, ParamKey *pvkeys, int i1, int i2, int i3) { PHandle *handle = (PHandle *)phandle; PHashKey *vkeys = (PHashKey *)pvkeys; @@ -4131,7 +4131,7 @@ void param_face_add(ParamHandle *handle, ParamKey key, int nverts, p_face_add_construct(phandle, key, vkeys, co, uv, 1, 2, 3, pin, select); } } - else + else if(!p_face_exists(phandle, vkeys, 0, 1, 2)) p_face_add_construct(phandle, key, vkeys, co, uv, 0, 1, 2, pin, select); } |