Make sure NpcAnimation base exists before runAnimation. Not sure yet why this is needed.

This commit is contained in:
scrawl 2013-11-14 19:18:27 +01:00
parent 5458207325
commit 4083c55848

View file

@ -417,6 +417,9 @@ NifOgre::ObjectList NpcAnimation::insertBoundedPart(const std::string &model, in
Ogre::Vector3 NpcAnimation::runAnimation(float timepassed)
{
if (!mSkelBase)
updateNpcBase();
Ogre::Vector3 ret = Animation::runAnimation(timepassed);
Ogre::SkeletonInstance *baseinst = mSkelBase->getSkeleton();