mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
Remove an unnecessary cast
This commit is contained in:
parent
e1d3933145
commit
7df4d0d19f
@ -102,11 +102,10 @@ void Animation::createEntityList(Ogre::SceneNode *node, const std::string &model
|
||||
while(trackiter.hasMoreElements())
|
||||
{
|
||||
const Ogre::Node *srcnode = trackiter.getNext()->getAssociatedNode();
|
||||
const Ogre::Node *srcbone = dynamic_cast<const Ogre::Bone*>(srcnode);
|
||||
if(!srcbone || !skelinst->hasBone(srcbone->getName()))
|
||||
if(!skelinst->hasBone(srcnode->getName()))
|
||||
continue;
|
||||
|
||||
Ogre::Bone *bone = skelinst->getBone(srcbone->getName());
|
||||
Ogre::Bone *bone = skelinst->getBone(srcnode->getName());
|
||||
bone->setOrientation(Ogre::Quaternion::IDENTITY);
|
||||
bone->setPosition(Ogre::Vector3::ZERO);
|
||||
bone->setScale(Ogre::Vector3(1.0f));
|
||||
|
Loading…
Reference in New Issue
Block a user