diff options
author | stujones11 <stujones11@server.fake> | 2013-05-22 20:20:05 +0100 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-06-03 23:31:08 +0200 |
commit | 649dca4d16786ed4e5b74878f56b86dea4f02542 (patch) | |
tree | 94a74c798c599d08d85d9b65e898ac1de2f96bd6 | |
parent | 601ab852261e8db3edfbd75fe9664296513e6f97 (diff) | |
download | minetest-649dca4d16786ed4e5b74878f56b86dea4f02542.tar.gz minetest-649dca4d16786ed4e5b74878f56b86dea4f02542.tar.bz2 minetest-649dca4d16786ed4e5b74878f56b86dea4f02542.zip |
Fix multiple texture support for animated meshnodes.
-rw-r--r-- | src/content_cao.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp index f79d0d6f6..57bbb30b9 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1308,7 +1308,7 @@ public: } // 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); |