Re-enable texture pre-filters on wielditems, fixing #3178.
authorAaron Suen <warr1024@gmail.com>
Mon, 14 Sep 2015 01:04:22 +0000 (21:04 -0400)
committerest31 <MTest31@outlook.com>
Tue, 24 Nov 2015 02:22:31 +0000 (03:22 +0100)
src/wieldmesh.cpp

index bc2977a0e2a0fe48c37e914bb9ded7af8e7c6a08..a022754a6864da4fce61ad64285043caa00723f7 100644 (file)
@@ -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;