Fix items turning black (#6780)
authorVitaliy <silverunicorn2011@yandex.ru>
Sat, 16 Dec 2017 16:01:37 +0000 (19:01 +0300)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sat, 16 Dec 2017 16:01:37 +0000 (17:01 +0100)
src/wieldmesh.cpp

index db256c6185fc4583d2110da5527188ae4e77e67c..18aae3193774ce15567e5b26671db8bdc71d5e13 100644 (file)
@@ -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(),