fix for own bugs in curves.
[blender.git] / source / blender / blenkernel / intern / exotic.c
index 479be2ee6446b9a07b4ad4b560a83f66f9bfdde8..561b564ac39657a9009225773bc2476d9704bd47 100644 (file)
@@ -2097,8 +2097,10 @@ static void displist_to_mesh(DispList *dlfirst)
                        }
 
                        for(a=0; a<dl->parts; a++) {
-
-                               DL_SURFINDEX(dl->flag & DL_CYCL_U, dl->flag & DL_CYCL_V, dl->nr, dl->parts);
+                               
+                               if (surfindex_displist(dl, a, &b, &p1, &p2, &p3, &p4)==0)
+                                       break;
+                               
                                p1+= startve; 
                                p2+= startve; 
                                p3+= startve;