mirror of
https://github.com/Haui1112/minetest.git
synced 2024-10-23 11:36:12 +02:00
Fix multiple texture support for animated meshnodes.
This commit is contained in:
parent
601ab85226
commit
649dca4d16
|
@ -1308,7 +1308,7 @@ class GenericCAO : public ClientActiveObject
|
|||
}
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue