aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstujones11 <stujones11@server.fake>2013-05-22 20:20:05 +0100
committerKahrl <kahrl@gmx.net>2013-06-03 23:31:08 +0200
commit649dca4d16786ed4e5b74878f56b86dea4f02542 (patch)
tree94a74c798c599d08d85d9b65e898ac1de2f96bd6 /src
parent601ab852261e8db3edfbd75fe9664296513e6f97 (diff)
downloadminetest-649dca4d16786ed4e5b74878f56b86dea4f02542.tar.gz
minetest-649dca4d16786ed4e5b74878f56b86dea4f02542.tar.bz2
minetest-649dca4d16786ed4e5b74878f56b86dea4f02542.zip
Fix multiple texture support for animated meshnodes.
Diffstat (limited to 'src')
-rw-r--r--src/content_cao.cpp2
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);