mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-21 04:20:48 +00:00
Make sure NpcAnimation base exists before runAnimation. Not sure yet why this is needed.
This commit is contained in:
parent
5458207325
commit
4083c55848
@ -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…
x
Reference in New Issue
Block a user