From ee6bb5a315cc13aa51cda509d02780c21333af44 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 14 Nov 2017 21:23:34 +0300 Subject: Fix item and wield meshes (#6596) --- src/content_mapblock.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/content_mapblock.cpp') diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp index c2a25037c..2b0948b3e 100644 --- a/src/content_mapblock.cpp +++ b/src/content_mapblock.cpp @@ -725,7 +725,7 @@ void MapblockMeshGenerator::drawGlasslikeFramedNode() v3s16 n2p = blockpos_nodes + p + g_26dirs[i]; MapNode n2 = data->m_vmanip.getNodeNoEx(n2p); content_t n2c = n2.getContent(); - if (n2c == current || n2c == CONTENT_IGNORE) + if (n2c == current) nb[i] = 1; } } @@ -1363,3 +1363,11 @@ void MapblockMeshGenerator::generate() drawNode(); } } + +void MapblockMeshGenerator::renderSingle(content_t node) +{ + p = {0, 0, 0}; + n = MapNode(node, 0xff, 0x00); + f = &nodedef->get(n); + drawNode(); +} -- cgit v1.2.3