mad logic in tface to mface commit from a while ago. non UV meshes didnt render in textured view.

This commit is contained in:
Campbell Barton
2007-05-05 14:48:45 +00:00
parent 03040b54b3
commit 678825db5e

View File

@@ -936,7 +936,7 @@ static unsigned char g_draw_tface_mesh_obcol[4];
static int draw_tface__set_draw(MTFace *tface, MCol *mcol, int matnr)
{
if (!tface || (tface->mode&TF_INVISIBLE)) return 0;
if (tface && (tface->mode&TF_INVISIBLE)) return 0;
if (tface && set_draw_settings_cached(0, g_draw_tface_mesh_istex, tface, g_draw_tface_mesh_islight, g_draw_tface_mesh_ob, matnr, TF_TWOSIDE)) {
glColor3ub(0xFF, 0x00, 0xFF);