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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2007-01-28 21:37:12 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2007-01-28 21:37:12 +0300
commit47d3624439c4d53363b55c9921bddc214bafe524 (patch)
tree2ac457de0b5ba28beb71430f91f7a1fa8363a164 /source/blender/src/parametrizer.c
parentc92fae004a57b83d0e003674bd9aa718685a7fa7 (diff)
Fix for bug #5861:
Minimize stretch incorrectly stitched together UVs.
Diffstat (limited to 'source/blender/src/parametrizer.c')
-rw-r--r--source/blender/src/parametrizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/parametrizer.c b/source/blender/src/parametrizer.c
index c3b31613dd9..22282922b34 100644
--- a/source/blender/src/parametrizer.c
+++ b/source/blender/src/parametrizer.c
@@ -600,12 +600,12 @@ static PBool p_edge_implicit_seam(PEdge *e, PEdge *ep)
uvp2 = ep->orig_uv;
}
- if((fabs(uv1[0]-uvp1[0]) > limit[0]) && (fabs(uv1[1]-uvp1[1]) > limit[1])) {
+ if((fabs(uv1[0]-uvp1[0]) > limit[0]) || (fabs(uv1[1]-uvp1[1]) > limit[1])) {
e->flag |= PEDGE_SEAM;
ep->flag |= PEDGE_SEAM;
return P_TRUE;
}
- if((fabs(uv2[0]-uvp2[0]) > limit[0]) && (fabs(uv2[1]-uvp2[1]) > limit[1])) {
+ if((fabs(uv2[0]-uvp2[0]) > limit[0]) || (fabs(uv2[1]-uvp2[1]) > limit[1])) {
e->flag |= PEDGE_SEAM;
ep->flag |= PEDGE_SEAM;
return P_TRUE;