Bug fix 1202

Sample file showed UV-textured Subsurf, in 'Potato' texture view. When
separating part of it in editmode, a null pointer was referenced in
drawing code.
This commit is contained in:
2004-04-28 17:26:30 +00:00
parent 83b17b9f4d
commit 07b6ca41c8

View File

@@ -855,6 +855,8 @@ void draw_tface_mesh(Object *ob, Mesh *me, int dt)
mface= me->mface;
tface= me->tface;
}
// tface can be NULL
if(tface==NULL) return;
for (a=0; a<totface; a++, tface++) {
int v1idx, v2idx, v3idx, v4idx, mf_smooth, matnr, badtex;