mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
On-demand item meshes and textures
This commit is contained in:
parent
ba73e75ef9
commit
bee170570d
8 changed files with 309 additions and 201 deletions
|
@ -529,7 +529,7 @@ void Camera::setDigging(s32 button)
|
|||
void Camera::wield(const ItemStack &item)
|
||||
{
|
||||
IItemDefManager *idef = m_gamedef->idef();
|
||||
scene::IMesh *wield_mesh = item.getDefinition(idef).wield_mesh;
|
||||
scene::IMesh *wield_mesh = idef->getWieldMesh(item.getDefinition(idef).name, m_gamedef);
|
||||
if(wield_mesh)
|
||||
{
|
||||
m_wieldnode->setMesh(wield_mesh);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue