Store the entities' root node in the EntityList

actorid
Chris Robinson 13 years ago
parent 92546ca18d
commit b04c3cbcac

@ -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++)
{

@ -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)
{ }
};

Loading…
Cancel
Save