Left out the case where MTFace can be null.

This commit is contained in:
Charlie Carley 2007-02-05 08:07:55 +00:00
parent 2afea953e3
commit abc2a4ca44

@ -679,7 +679,7 @@ BL_Material* ConvertMaterial(
GetRGB(type,mface,mmcol,mat,rgb[0],rgb[1],rgb[2], rgb[3]);
// swap the material color, so MCol on TF_BMFONT works
if (validmat && type==1 && tface->mode & TF_BMFONT)
if (validmat && type==1 && (tface && tface->mode & TF_BMFONT))
{
rgb[0] = KX_rgbaint2uint_new(rgb[0]);
rgb[1] = KX_rgbaint2uint_new(rgb[1]);