- "Text" tfaces should only be drawn from deformed (not subdivided)
mesh
This commit is contained in:
@@ -889,11 +889,15 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
|
|||||||
|
|
||||||
dm->drawFacesTex(dm, draw_tface_mesh__set_draw);
|
dm->drawFacesTex(dm, draw_tface_mesh__set_draw);
|
||||||
|
|
||||||
|
if (dmNeedsFree) dm->release(dm);
|
||||||
|
|
||||||
start = 0;
|
start = 0;
|
||||||
totface = me->totface;
|
totface = me->totface;
|
||||||
set_buildvars(ob, &start, &totface);
|
set_buildvars(ob, &start, &totface);
|
||||||
|
|
||||||
if (!editing && prop && tface) {
|
if (!editing && prop && tface) {
|
||||||
|
dm = mesh_get_derived_deform(ob, &dmNeedsFree);
|
||||||
|
|
||||||
tface+= start;
|
tface+= start;
|
||||||
for (a=start; a<totface; a++, tface++) {
|
for (a=start; a<totface; a++, tface++) {
|
||||||
MFace *mf= &mface[a];
|
MFace *mf= &mface[a];
|
||||||
@@ -977,11 +981,12 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
|
|||||||
glEnd();
|
glEnd();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dmNeedsFree) dm->release(dm);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* switch off textures */
|
/* switch off textures */
|
||||||
set_tpage(0);
|
set_tpage(0);
|
||||||
if (dmNeedsFree) dm->release(dm);
|
|
||||||
}
|
}
|
||||||
glShadeModel(GL_FLAT);
|
glShadeModel(GL_FLAT);
|
||||||
glDisable(GL_CULL_FACE);
|
glDisable(GL_CULL_FACE);
|
||||||
|
|||||||
Reference in New Issue
Block a user