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:
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…
x
Reference in New Issue
Block a user