1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Draw node animation for items (#15930)

This commit is contained in:
cx384
2025-04-04 18:47:11 +02:00
committed by GitHub
parent 1db5a2f950
commit a6d4cd7c15
9 changed files with 117 additions and 74 deletions

View File

@@ -809,7 +809,8 @@ void GenericCAO::setNodeLight(const video::SColor &light_color)
{
if (m_prop.visual == OBJECTVISUAL_WIELDITEM || m_prop.visual == OBJECTVISUAL_ITEM) {
if (m_wield_meshnode)
m_wield_meshnode->setNodeLightColor(light_color);
m_wield_meshnode->setLightColorAndAnimation(light_color,
m_client->getAnimationTime());
return;
}