Fix multiple texture support for animated meshnodes.

stable-0.4
stujones11 2013-05-22 20:20:05 +01:00 committed by Kahrl
parent 601ab85226
commit 649dca4d16
1 changed files with 1 additions and 1 deletions

View File

@ -1308,7 +1308,7 @@ public:
}
// Set material flags and texture
m_animated_meshnode->setMaterialTexture(i, texture);
m_animated_meshnode->getMaterial(i).TextureLayer[0].Texture = texture;
video::SMaterial& material = m_animated_meshnode->getMaterial(i);
material.setFlag(video::EMF_LIGHTING, false);
material.setFlag(video::EMF_BILINEAR_FILTER, false);