forked from teamnwah/openmw-tes3coop
fix npc animation key update
This commit is contained in:
parent
0e3f70413e
commit
ee97a204f2
1 changed files with 2 additions and 1 deletions
|
@ -146,9 +146,10 @@ Actors::updateObjectCell(const MWWorld::Ptr &ptr)
|
||||||
node = mCellSceneNodes[newCell];
|
node = mCellSceneNodes[newCell];
|
||||||
}
|
}
|
||||||
node->addChild(ptr.getRefData().getBaseNode());
|
node->addChild(ptr.getRefData().getBaseNode());
|
||||||
if (Animation *anim = mAllActors[ptr]) {
|
if (mAllActors.find(ptr) != mAllActors.end()) {
|
||||||
/// \note Update key (Ptr's are compared only with refdata so mCell
|
/// \note Update key (Ptr's are compared only with refdata so mCell
|
||||||
/// on key is outdated), maybe redundant
|
/// on key is outdated), maybe redundant
|
||||||
|
Animation *anim = mAllActors[ptr];
|
||||||
mAllActors.erase(ptr);
|
mAllActors.erase(ptr);
|
||||||
mAllActors[ptr] = anim;
|
mAllActors[ptr] = anim;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue