fix for own error in tesselating as quad
authorCampbell Barton <ideasman42@gmail.com>
Wed, 25 Jan 2012 22:55:12 +0000 (22:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 25 Jan 2012 22:55:12 +0000 (22:55 +0000)
source/blender/blenkernel/intern/mesh.c

index 0a4045bea21be3259de91ef15208d56e87036510..1c6aa374601f6c0fb49178a88e146ee9ccf5a050 100644 (file)
@@ -2441,7 +2441,7 @@ int mesh_recalcTesselation(CustomData *fdata,
                lindex[1] = mf->v2;
                lindex[2] = mf->v3;
 #ifdef USE_TESSFACE_QUADS
-               if (mf_len == 4) lindex[2] = mf->v3;
+               if (mf_len == 4) lindex[3] = mf->v4;
 #endif
 
                /*transform loop indices to vert indices*/