From dd4c21c1808acedfbcf8402c09ce9129b6ac31c7 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Tue, 28 Oct 2014 08:02:28 +0100 Subject: Add option to enable mesh caching, add wallmounted for meshes. --- src/itemdef.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/itemdef.cpp') diff --git a/src/itemdef.cpp b/src/itemdef.cpp index 10e1afe2d..f976c3eb7 100644 --- a/src/itemdef.cpp +++ b/src/itemdef.cpp @@ -400,7 +400,10 @@ public: g_settings->setBool("enable_shaders",false); } MeshMakeData mesh_make_data(gamedef); - MapNode mesh_make_node(id, param1, 0); + u8 param2 = 0; + if (f.param_type_2 == CPT2_WALLMOUNTED) + param2 = 1; + MapNode mesh_make_node(id, param1, param2); mesh_make_data.fillSingleNode(&mesh_make_node); MapBlockMesh mapblock_mesh(&mesh_make_data, v3s16(0, 0, 0)); scene::IMesh *node_mesh = mapblock_mesh.getMesh(); -- cgit v1.2.3