fix [#29378] some textures getting stretched when the mesh has solidify and subsurf
authorCampbell Barton <ideasman42@gmail.com>
Mon, 5 Dec 2011 07:48:49 +0000 (07:48 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 5 Dec 2011 07:48:49 +0000 (07:48 +0000)
source/blender/modifiers/intern/MOD_solidify.c

index cc52439a964f0a205b06383502bf9bb8d0e95225..86e16df0be54b0bcc0c01304d1e7119cfc69b75f 100644 (file)
@@ -605,7 +605,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
                        }
                        
                        if (ed->v2 == mloop[mpoly[fidx].loopstart+k1].v) {
-                               k2 = (k1 + mp->totloop - 1)%mp->totloop;
+                               k2 = (k1 + mp->totloop + 1)%mp->totloop;
                                SWAP(int, k1, k2);
                        }
                        else if (ed->v1 == mloop[mpoly[fidx].loopstart+k1].v) {