forked from mirror/openmw-tes3mp
Make sure NpcAnimation base exists before runAnimation. Not sure yet why this is needed.
This commit is contained in:
parent
5458207325
commit
4083c55848
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue