Support keyframe controllers for bones that aren't in the skeleton base

This commit is contained in:
scrawl 2014-01-31 03:23:47 +01:00
parent 305a471c5a
commit 60bbab52fe

View file

@ -532,12 +532,6 @@ static void updateBoneTree(const Ogre::SkeletonInstance *skelsrc, Ogre::Bone *bo
bone->setScale(Ogre::Vector3::UNIT_SCALE); bone->setScale(Ogre::Vector3::UNIT_SCALE);
} }
} }
else
{
// No matching bone in the source. Make sure it stays properly offset
// from its parent.
bone->resetToInitialState();
}
Ogre::Node::ChildNodeIterator boneiter = bone->getChildIterator(); Ogre::Node::ChildNodeIterator boneiter = bone->getChildIterator();
while(boneiter.hasMoreElements()) while(boneiter.hasMoreElements())