diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-10-28 08:02:28 +0100 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-10-29 08:37:33 +0100 |
commit | dd4c21c1808acedfbcf8402c09ce9129b6ac31c7 (patch) | |
tree | 79159a4bc4f71f4adef9f0f5e7af00c90ba9dc08 /src/itemdef.cpp | |
parent | 813c088c1c66df45731c9015248b22d55e694c76 (diff) | |
download | minetest-dd4c21c1808acedfbcf8402c09ce9129b6ac31c7.tar.gz minetest-dd4c21c1808acedfbcf8402c09ce9129b6ac31c7.tar.bz2 minetest-dd4c21c1808acedfbcf8402c09ce9129b6ac31c7.zip |
Add option to enable mesh caching, add wallmounted for meshes.
Diffstat (limited to 'src/itemdef.cpp')
-rw-r--r-- | src/itemdef.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |