aboutsummaryrefslogtreecommitdiff
path: root/src/wieldmesh.cpp
diff options
context:
space:
mode:
authorVitaliy <silverunicorn2011@yandex.ru>2018-03-22 22:59:49 +0300
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-03-22 20:59:49 +0100
commit9fcc0c1217fcd3acabaa11239631de10032fa126 (patch)
tree7596bc17bd51f5b9d22ad918743d90fcfa0e2278 /src/wieldmesh.cpp
parent8986a9e6053bed0002726bc000ee394a928b7f51 (diff)
downloadminetest-9fcc0c1217fcd3acabaa11239631de10032fa126.tar.gz
minetest-9fcc0c1217fcd3acabaa11239631de10032fa126.tar.bz2
minetest-9fcc0c1217fcd3acabaa11239631de10032fa126.zip
Update mesh collector and move it to a separate file (#6904)
* Update MeshCollector * Simplify MeshCollector
Diffstat (limited to 'src/wieldmesh.cpp')
-rw-r--r--src/wieldmesh.cpp3
1 files changed, 2 insertions, 1 deletions
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<ItemPartColor> *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);