diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-03-29 20:43:39 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-03-29 20:43:39 +0400 |
commit | e229722d5b20c0603f0b0cf0e559a43b4c5ec546 (patch) | |
tree | da5a3b7ca09e989aa9246f5172ef7135297659a5 /source/blender/src/drawmesh.c | |
parent | da0a55d2b41d563385679d9beb12c26eaf7f1f63 (diff) |
- 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).
Diffstat (limited to 'source/blender/src/drawmesh.c')
-rw-r--r-- | source/blender/src/drawmesh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c index 969aa2300be..bca1729cf6e 100644 --- a/source/blender/src/drawmesh.c +++ b/source/blender/src/drawmesh.c @@ -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; |