- "Text" tfaces should only be drawn from deformed (not subdivided)

mesh
This commit is contained in:
Daniel Dunbar 2005-07-17 21:54:12 +00:00
parent c6a72088a2
commit 1900b83301
1 changed files with 6 additions and 1 deletions

View File

@ -889,11 +889,15 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
dm->drawFacesTex(dm, draw_tface_mesh__set_draw);
if (dmNeedsFree) dm->release(dm);
start = 0;
totface = me->totface;
set_buildvars(ob, &start, &totface);
if (!editing && prop && tface) {
dm = mesh_get_derived_deform(ob, &dmNeedsFree);
tface+= start;
for (a=start; a<totface; a++, tface++) {
MFace *mf= &mface[a];
@ -977,11 +981,12 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
glEnd();
}
}
if (dmNeedsFree) dm->release(dm);
}
/* switch off textures */
set_tpage(0);
if (dmNeedsFree) dm->release(dm);
}
glShadeModel(GL_FLAT);
glDisable(GL_CULL_FACE);