mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
Dont animate changing wielditem from hand to hand
This commit is contained in:
parent
c67f72890c
commit
e57dc4ef18
@ -588,7 +588,8 @@ void Camera::wield(const ItemStack &item, u16 playeritem)
|
|||||||
IItemDefManager *idef = m_gamedef->idef();
|
IItemDefManager *idef = m_gamedef->idef();
|
||||||
std::string itemname = item.getDefinition(idef).name;
|
std::string itemname = item.getDefinition(idef).name;
|
||||||
m_wield_mesh_next = idef->getWieldMesh(itemname, m_gamedef);
|
m_wield_mesh_next = idef->getWieldMesh(itemname, m_gamedef);
|
||||||
if(playeritem != m_previous_playeritem) {
|
if(playeritem != m_previous_playeritem &&
|
||||||
|
!(m_previous_itemname == "" && itemname == "")) {
|
||||||
m_previous_playeritem = playeritem;
|
m_previous_playeritem = playeritem;
|
||||||
m_previous_itemname = itemname;
|
m_previous_itemname = itemname;
|
||||||
if(m_wield_change_timer >= 0.125)
|
if(m_wield_change_timer >= 0.125)
|
||||||
|
Loading…
Reference in New Issue
Block a user