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 PilzAdam committed Jul 9, 2013
1 parent 1c7c5d5 commit e8f201c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_cao.cpp
Expand Up @@ -1308,8 +1308,8 @@ class GenericCAO : public ClientActiveObject
}

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

Expand Down

0 comments on commit e8f201c

Please sign in to comment.