From 4083c5584802d1aa75d0ea2f7b1a536f9788f6f5 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 14 Nov 2013 19:18:27 +0100 Subject: [PATCH] Make sure NpcAnimation base exists before runAnimation. Not sure yet why this is needed. --- apps/openmw/mwrender/npcanimation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwrender/npcanimation.cpp b/apps/openmw/mwrender/npcanimation.cpp index 2cbc76711..9353ae2e4 100644 --- a/apps/openmw/mwrender/npcanimation.cpp +++ b/apps/openmw/mwrender/npcanimation.cpp @@ -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();