aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-06-06 17:13:41 +0000
committerPilzAdam <pilzadam@minetest.net>2013-06-06 17:13:41 +0000
commitbfa608b85ed18a0d00fc0e77b223b01f3522ce34 (patch)
treeb905f1a0b33e8f63114b1235fae02a4b17cb6167 /src
parent7cb521725569b7eda98af40f7e4b4eb63afff633 (diff)
downloadminetest-bfa608b85ed18a0d00fc0e77b223b01f3522ce34.tar.gz
minetest-bfa608b85ed18a0d00fc0e77b223b01f3522ce34.tar.bz2
minetest-bfa608b85ed18a0d00fc0e77b223b01f3522ce34.zip
Revert "Fix multiple texture support for animated meshnodes." (broke existing models)
This reverts commit 649dca4d16786ed4e5b74878f56b86dea4f02542.
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 57bbb30b9..f79d0d6f6 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -1308,7 +1308,7 @@ public:
}
// 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);