mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix multiple texture support for animated meshnodes
This commit is contained in:
parent
1c7c5d571d
commit
e8f201cefa
1 changed files with 1 additions and 1 deletions
|
@ -1308,8 +1308,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set material flags and texture
|
// Set material flags and texture
|
||||||
m_animated_meshnode->setMaterialTexture(i, texture);
|
|
||||||
video::SMaterial& material = m_animated_meshnode->getMaterial(i);
|
video::SMaterial& material = m_animated_meshnode->getMaterial(i);
|
||||||
|
material.TextureLayer[0].Texture = texture;
|
||||||
material.setFlag(video::EMF_LIGHTING, false);
|
material.setFlag(video::EMF_LIGHTING, false);
|
||||||
material.setFlag(video::EMF_BILINEAR_FILTER, false);
|
material.setFlag(video::EMF_BILINEAR_FILTER, false);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue