forked from bartvdbraak/blender
BGE: Fix bug with default material and MTFace.
It set default material even if there are a MTface but no blender material. Tested in GLSL and Multitexture. Reviewers: HG1
This commit is contained in:
parent
a5a648c7c6
commit
153cebd95b
@ -1065,8 +1065,8 @@ RAS_MeshObject* BL_ConvertMesh(Mesh* mesh, Object* blenderobj, KX_Scene* scene,
|
||||
else
|
||||
ma = mesh->mat ? mesh->mat[mface->mat_nr]:NULL;
|
||||
|
||||
/* ckeck for texface since texface _only_ is used as a fallback */
|
||||
if (ma == NULL && tface == NULL) {
|
||||
// Check for blender material
|
||||
if (ma == NULL) {
|
||||
ma= &defmaterial;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user