mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Don't get the text keys if they're not being requested
This commit is contained in:
parent
683ced54a0
commit
3131e8dae6
1 changed files with 1 additions and 1 deletions
|
@ -1092,7 +1092,7 @@ EntityList NIFLoader::createEntities(Ogre::SceneNode *parent, TextKeyMap *textke
|
|||
entitylist.mSkelBase = entity;
|
||||
}
|
||||
|
||||
if(entitylist.mSkelBase)
|
||||
if(entitylist.mSkelBase && textkeys)
|
||||
{
|
||||
// Would be nice if Ogre::SkeletonInstance allowed access to the 'master' Ogre::SkeletonPtr.
|
||||
Ogre::SkeletonManager &skelMgr = Ogre::SkeletonManager::getSingleton();
|
||||
|
|
Loading…
Reference in a new issue