fix for bug 4819

.
This commit is contained in:
2006-08-08 17:07:39 +00:00
parent b44ae44c72
commit 27925d1bf0

View File

@@ -122,7 +122,7 @@
/* returns 0 if not found, otherwise 1 */
int facesel_face_pick(Mesh *me, short *mval, unsigned int *index, short rect)
{
if (!me->tface || me->totface==0)
if (!me || !me->tface || me->totface==0)
return 0;
if (G.vd->flag & V3D_NEEDBACKBUFDRAW) {