1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Fix item and wield meshes (#6596)

This commit is contained in:
Vitaliy 2017-11-14 21:23:34 +03:00 committed by sfan5
parent 8ea86338ab
commit ee6bb5a315
4 changed files with 57 additions and 35 deletions

View file

@ -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();
}