From 9fcc0c1217fcd3acabaa11239631de10032fa126 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 22 Mar 2018 22:59:49 +0300 Subject: Update mesh collector and move it to a separate file (#6904) * Update MeshCollector * Simplify MeshCollector --- src/wieldmesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wieldmesh.cpp') diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp index dd97bc08a..7414701b7 100644 --- a/src/wieldmesh.cpp +++ b/src/wieldmesh.cpp @@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "mesh.h" #include "content_mapblock.h" #include "mapblock_mesh.h" +#include "client/meshgen/collector.h" #include "client/tile.h" #include "log.h" #include "util/numeric.h" @@ -304,7 +305,7 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename, scene::SMesh *createSpecialNodeMesh(Client *client, content_t id, std::vector *colors) { MeshMakeData mesh_make_data(client, false, false); - MeshCollector collector(false); + MeshCollector collector; mesh_make_data.setSmoothLighting(false); MapblockMeshGenerator gen(&mesh_make_data, &collector); gen.renderSingle(id); -- cgit v1.2.3