draw_mesh_fancy was using the original meshes stats rather then the derived mesh (that is being drawn)

This should not change teh way it works currently, however modifiers that add faces or edges need this so they render properly.
This commit is contained in:
2007-06-12 05:59:37 +00:00
parent 82eab51a29
commit 88cca5dc1a

View 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? */