- added Mesh->derived and Mesh->decimated DerivedMesh pointers

- removed DL_MESH displist type!!!! Now store a DerivedMesh directly.
 - May still be some issues left having to do with releasing this
   at the right time (old code just splashed free_displist all
   over the place).
This commit is contained in:
2005-03-29 16:43:39 +00:00
parent da0a55d2b4
commit e229722d5b
21 changed files with 165 additions and 129 deletions

View File

@@ -933,11 +933,12 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
if(mesh_uses_displist(me) && editing==0) {
dm = mesh_get_derived(ob);
dm->drawFacesTex(dm, draw_tface_mesh__set_draw);
} else {
dm = mesh_get_base_derived(ob);
dm->drawFacesTex(dm, draw_tface_mesh__set_draw);
dm->release(dm);
}
dm->drawFacesTex(dm, draw_tface_mesh__set_draw);
dm->release(dm);
start = 0;
totface = me->totface;