Fixed bug in Loop Subdivide preview line (cause a crash)

This commit is contained in:
2003-10-25 09:41:22 +00:00
parent f90a2c3839
commit 00f11bf5f3

View File

@@ -2474,6 +2474,7 @@ void loop(int mode)
} }
} }
else{ /* if it's a triangular face, set the remaining vertex as the cutcurve coordinate */ else{ /* if it's a triangular face, set the remaining vertex as the cutcurve coordinate */
if(a!=2){
if(evl->v1->f & 16){ if(evl->v1->f & 16){
cen[a][0]= evl->v1->co[0]; cen[a][0]= evl->v1->co[0];
cen[a][1]= evl->v1->co[1]; cen[a][1]= evl->v1->co[1];
@@ -2493,6 +2494,7 @@ void loop(int mode)
evl->v3->f &= ~16; evl->v3->f &= ~16;
} }
} }
}
glVertex3fv(cen[0]); glVertex3fv(cen[0]);