|
|
|
@ -8,6 +8,15 @@ using namespace Ogre;
|
|
|
|
|
using namespace MWRender;
|
|
|
|
|
using namespace NifOgre;
|
|
|
|
|
|
|
|
|
|
Actors::~Actors(){
|
|
|
|
|
|
|
|
|
|
std::map<MWWorld::Ptr, Animation*>::iterator it = mAllActors.begin();
|
|
|
|
|
for (; it != mAllActors.end(); ++it) {
|
|
|
|
|
delete it->second;
|
|
|
|
|
it->second = NULL;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Actors::setMwRoot(Ogre::SceneNode* root){
|
|
|
|
|
mMwRoot = root;
|
|
|
|
|
}
|
|
|
|
@ -61,6 +70,7 @@ void Actors::insertCreature (const MWWorld::Ptr& ptr){
|
|
|
|
|
insertBegin(ptr, true, true);
|
|
|
|
|
CreatureAnimation* anim = new MWRender::CreatureAnimation(ptr, mEnvironment, mRend);
|
|
|
|
|
//mAllActors.insert(std::pair<MWWorld::Ptr, Animation*>(ptr,anim));
|
|
|
|
|
delete mAllActors[ptr];
|
|
|
|
|
mAllActors[ptr] = anim;
|
|
|
|
|
//mAllActors.push_back(&anim);*/
|
|
|
|
|
}
|
|
|
|
|