Show a ghost hat for ghost kart

This commit is contained in:
Benau 2017-10-20 10:05:49 +08:00
parent 8a0232382a
commit fd0eaf064f

View File

@ -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());
}