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:
parent
03c4b680ca
commit
97fadb24ca
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue