Show a ghost hat for ghost kart
This commit is contained in:
parent
8a0232382a
commit
fd0eaf064f
@ -570,7 +570,8 @@ scene::ISceneNode* KartModel::attachModel(bool animated_models, bool human_playe
|
||||
m_animated_node->getJointNode(m_hat_bone.c_str()) : node;
|
||||
scene::IMesh* hat_mesh = irr_driver->getAnimatedMesh
|
||||
(file_manager->getAsset(FileManager::MODEL, m_hat_name));
|
||||
scene::ISceneNode* node = irr_driver->addMesh(hat_mesh, "hat", parent);
|
||||
scene::ISceneNode* node = irr_driver->addMesh(hat_mesh, "hat", parent,
|
||||
getRenderInfo());
|
||||
configNode(node, *m_hat_location, bone_attachment ?
|
||||
getInverseBoneMatrix(m_hat_bone) : core::matrix4());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user