Fix server only build
This commit is contained in:
parent
581ca964fd
commit
c26f8150f4
@ -1028,6 +1028,7 @@ void KartModel::attachHat()
|
|||||||
m_hat_node = irr_driver->addMesh(hat_mesh, "hat");
|
m_hat_node = irr_driver->addMesh(hat_mesh, "hat");
|
||||||
bone->addChild(m_hat_node);
|
bone->addChild(m_hat_node);
|
||||||
m_animated_node->setCurrentFrame((float)m_animation_frame[AF_STRAIGHT]);
|
m_animated_node->setCurrentFrame((float)m_animation_frame[AF_STRAIGHT]);
|
||||||
|
#ifndef SERVER_ONLY
|
||||||
STKAnimatedMesh* am = dynamic_cast<STKAnimatedMesh*>(m_animated_node);
|
STKAnimatedMesh* am = dynamic_cast<STKAnimatedMesh*>(m_animated_node);
|
||||||
if (am)
|
if (am)
|
||||||
{
|
{
|
||||||
@ -1036,6 +1037,7 @@ void KartModel::attachHat()
|
|||||||
am->setHardwareSkinning(true);
|
am->setHardwareSkinning(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
m_animated_node->OnAnimate(0);
|
m_animated_node->OnAnimate(0);
|
||||||
bone->updateAbsolutePosition();
|
bone->updateAbsolutePosition();
|
||||||
// With the hat node attached to the head bone, we have to
|
// With the hat node attached to the head bone, we have to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user