Skip to content

Commit

Permalink
Fix multiple texture support for animated meshnodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
stujones11 authored and kahrl committed Jun 3, 2013
1 parent 601ab85 commit 649dca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_cao.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 649dca4

Please sign in to comment.