forked from mirror/openmw-tes3mp
Store text keys from base NIF animations
This commit is contained in:
parent
36be1536d9
commit
f953d7f8c0
3 changed files with 3 additions and 2 deletions
|
@ -30,6 +30,7 @@ protected:
|
|||
bool mSkipFrame;
|
||||
|
||||
NifOgre::EntityList mEntityList;
|
||||
NifOgre::TextKeyMap mTextKeys;
|
||||
|
||||
public:
|
||||
Animation(OEngine::Render::OgreRenderer& _rend);
|
||||
|
|
|
@ -26,7 +26,7 @@ CreatureAnimation::CreatureAnimation(const MWWorld::Ptr& ptr, OEngine::Render::O
|
|||
{
|
||||
std::string mesh = "meshes\\" + ref->base->model;
|
||||
|
||||
mEntityList = NifOgre::NIFLoader::createEntities(mInsert, NULL, mesh);
|
||||
mEntityList = NifOgre::NIFLoader::createEntities(mInsert, &mTextKeys, mesh);
|
||||
for(size_t i = 0;i < mEntityList.mEntities.size();i++)
|
||||
{
|
||||
Ogre::Entity *ent = mEntityList.mEntities[i];
|
||||
|
|
|
@ -89,7 +89,7 @@ NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, OEngine::Render::OgreRendere
|
|||
|
||||
std::string smodel = (!isBeast ? "meshes\\base_anim.nif" : "meshes\\base_animkna.nif");
|
||||
|
||||
mEntityList = NifOgre::NIFLoader::createEntities(mInsert, NULL, smodel);
|
||||
mEntityList = NifOgre::NIFLoader::createEntities(mInsert, &mTextKeys, smodel);
|
||||
for(size_t i = 0;i < mEntityList.mEntities.size();i++)
|
||||
{
|
||||
Ogre::Entity *base = mEntityList.mEntities[i];
|
||||
|
|
Loading…
Reference in a new issue