1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Store the entities' root node in the EntityList

This commit is contained in:
Chris Robinson 2012-07-17 21:42:47 -07:00
parent 92546ca18d
commit b04c3cbcac
2 changed files with 3 additions and 1 deletions

View File

@ -885,6 +885,7 @@ EntityList NIFLoader::createEntities(Ogre::SceneNode *parent, const std::string
if(meshes.size() == 0)
return entitylist;
entitylist.mRootNode = parent;
Ogre::SceneManager *sceneMgr = parent->getCreator();
for(size_t i = 0;i < meshes.size();i++)
{

View File

@ -61,8 +61,9 @@ namespace NifOgre
struct EntityList {
std::vector<Ogre::Entity*> mEntities;
Ogre::Entity *mSkelBase;
Ogre::SceneNode *mRootNode;
EntityList() : mSkelBase(0)
EntityList() : mSkelBase(0), mRootNode(0)
{ }
};