Skip to content
Permalink
Browse files

Fix multiple texture support for animated meshnodes.

  • Loading branch information
stujones11 authored and kahrl committed Jun 3, 2013
1 parent 601ab85 commit 649dca4d16786ed4e5b74878f56b86dea4f02542
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/content_cao.cpp
@@ -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);

0 comments on commit 649dca4

Please sign in to comment.