1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Update the Ptr in mObjects in Objects::updateObjectCell

This commit is contained in:
scrawl 2013-11-27 18:46:18 +01:00
parent 03c4b680ca
commit 97fadb24ca

View file

@ -278,7 +278,17 @@ void Objects::updateObjectCell(const MWWorld::Ptr &old, const MWWorld::Ptr &cur)
} else {
node = mCellSceneNodes[newCell];
}
node->addChild(cur.getRefData().getBaseNode());
PtrAnimationMap::iterator iter = mObjects.find(old);
if(iter != mObjects.end())
{
ObjectAnimation *anim = iter->second;
mObjects.erase(iter);
anim->updatePtr(cur);
mObjects[cur] = anim;
}
}
ObjectAnimation* Objects::getAnimation(const MWWorld::Ptr &ptr)