fix for [#17959] NURBS Circle: pie-shaped deformation, sticking to object origin
authorCampbell Barton <ideasman42@gmail.com>
Tue, 11 Nov 2008 05:03:03 +0000 (05:03 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 11 Nov 2008 05:03:03 +0000 (05:03 +0000)
source/blender/blenkernel/intern/displist.c

index 3b6820461be5da0ad1649df8a4af7568fc3b42d0..35097c053581d546eec72e4bec44781e697f5477 100644 (file)
@@ -1381,7 +1381,7 @@ void makeDispListSurf(Object *ob, ListBase *dispbase, int forRender)
        for (nu=nubase->first; nu; nu=nu->next) {
                if(forRender || nu->hide==0) {
                        if(nu->pntsv==1) {
-                               len= nu->resolu*SEGMENTSU(nu)+1;
+                               len= nu->pntsu*nu->resolu;
                                
                                dl= MEM_callocN(sizeof(DispList), "makeDispListsurf");
                                dl->verts= MEM_callocN(len*3*sizeof(float), "dlverts");