Left out the case where MTFace can be null.
This commit is contained in:
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]);
|
||||
|
Loading…
Reference in New Issue
Block a user