aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaliy <silverunicorn2011@yandex.ru>2017-12-16 19:01:37 +0300
committerSmallJoker <SmallJoker@users.noreply.github.com>2017-12-16 17:01:37 +0100
commit770eb09adcca5e8d7b1d3b441a130fb9338759e2 (patch)
tree469f710780a3a304be96820edc79f61fa8534e68
parentfd71a7c16396585e6805b864cee414ad282e8c9a (diff)
downloadminetest-770eb09adcca5e8d7b1d3b441a130fb9338759e2.tar.gz
minetest-770eb09adcca5e8d7b1d3b441a130fb9338759e2.tar.bz2
minetest-770eb09adcca5e8d7b1d3b441a130fb9338759e2.zip
Fix items turning black (#6780)
-rw-r--r--src/wieldmesh.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp
index db256c618..18aae3193 100644
--- a/src/wieldmesh.cpp
+++ b/src/wieldmesh.cpp
@@ -320,11 +320,7 @@ scene::SMesh *createSpecialNodeMesh(Client *client, content_t id, std::vector<It
for (video::S3DVertex &v : p.vertices)
v.Color.setAlpha(255);
scene::SMeshBuffer *buf = new scene::SMeshBuffer();
- // always set all textures
- // with no shaders only texture 0 is ever actually used
buf->Material.setTexture(0, p.layer.texture);
- buf->Material.setTexture(1, p.layer.normal_texture);
- buf->Material.setTexture(2, p.layer.flags_texture);
p.layer.applyMaterialOptions(buf->Material);
mesh->addMeshBuffer(buf);
buf->append(&p.vertices[0], p.vertices.size(),