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:
parent
8ea86338ab
commit
ee6bb5a315
4 changed files with 57 additions and 35 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue