summaryrefslogtreecommitdiff
path: root/src/wieldmesh.cpp
diff options
context:
space:
mode:
authorAaron Suen <warr1024@gmail.com>2015-09-13 21:04:22 -0400
committerest31 <MTest31@outlook.com>2015-11-24 03:22:31 +0100
commit900db310638531a8b9fb1a587f75a02a15ae0c24 (patch)
treee8f1c09c8c72352665d48cfbdb124c571f16d9fc /src/wieldmesh.cpp
parent0cf15470fc16e1ebc13a7d8445cfd4278c3caf8b (diff)
downloadminetest-900db310638531a8b9fb1a587f75a02a15ae0c24.tar.gz
minetest-900db310638531a8b9fb1a587f75a02a15ae0c24.tar.bz2
minetest-900db310638531a8b9fb1a587f75a02a15ae0c24.zip
Re-enable texture pre-filters on wielditems, fixing #3178.
Diffstat (limited to 'src/wieldmesh.cpp')
-rw-r--r--src/wieldmesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp
index bc2977a0e..a022754a6 100644
--- a/src/wieldmesh.cpp
+++ b/src/wieldmesh.cpp
@@ -283,7 +283,7 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,
// Customize material
video::SMaterial &material = m_meshnode->getMaterial(0);
- material.setTexture(0, tsrc->getTexture(imagename));
+ material.setTexture(0, tsrc->getTextureForMesh(imagename));
material.TextureLayer[0].TextureWrapU = video::ETC_CLAMP_TO_EDGE;
material.TextureLayer[0].TextureWrapV = video::ETC_CLAMP_TO_EDGE;
material.MaterialType = m_material_type;