draw_mesh_fancy was using the original meshes stats rather then the derived mesh...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 12 Jun 2007 05:59:37 +0000 (05:59 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 12 Jun 2007 05:59:37 +0000 (05:59 +0000)
This should not change teh way it works currently, however modifiers that add faces or edges need this so they render properly.

source/blender/src/drawobject.c

index a39df5b7140dd7a55b630d11a68efc6d19f01e89..2159e3823e8164b1ad8f414fa772ecd0c57f8aad 100644 (file)
@@ -1991,14 +1991,14 @@ static void draw_mesh_fancy(Base *base, int dt, int flag)
                else totface = 0;
        }
        else {
-               totvert = me->totvert;
-               totedge = me->totedge;
-               totface = me->totface;
+               totvert = dm->getNumVerts(dm);
+               totedge = dm->getNumEdges(dm);
+               totface = dm->getNumFaces(dm);
        }
 #else
-       totvert = me->totvert;
-       totedge = me->totedge;
-       totface = me->totface;
+       totvert = dm->getNumVerts(dm);
+       totedge = dm->getNumEdges(dm);
+       totface = dm->getNumFaces(dm);
 #endif
        
        /* vertexpaint, faceselect wants this, but it doesnt work for shaded? */