Skip to content

Commit

Permalink
Revert "Fix multiple texture support for animated meshnodes." (broke …
Browse files Browse the repository at this point in the history
…existing models)

This reverts commit 649dca4.
  • Loading branch information
PilzAdam committed Jun 6, 2013
1 parent 7cb5217 commit bfa608b
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->getMaterial(i).TextureLayer[0].Texture = texture;
m_animated_meshnode->setMaterialTexture(i, 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 bfa608b

Please sign in to comment.