fix for own bugs in curves.
[blender.git] / source / blender / python / api2_2x / NMesh.c
index 28407f174dac5a17b0e9c7a54913b07a667594f1..2e82c55155f6de287c5da6190cb070587171c040 100644 (file)
@@ -2158,8 +2158,8 @@ static PyObject *new_NMesh_displist(ListBase *lb, Object *ob)
 
                        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;
                                
                                for(; b<dl->nr; b++) {
                                        vidx[0] = p2 + ioffset;