1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:53:51 +00:00

Do not return the player's Animation object for non-players

This commit is contained in:
Chris Robinson 2013-02-22 01:27:26 -08:00
parent 9c3af5f344
commit 7ec73c29f2

View file

@ -923,7 +923,8 @@ void RenderingManager::setupExternalRendering (MWRender::ExternalRendering& rend
Animation* RenderingManager::getAnimation(const MWWorld::Ptr &ptr)
{
Animation *anim = mActors.getAnimation(ptr);
if(!anim) anim = mPlayer->getAnimation();
if(!anim && ptr.getRefData().getHandle() == "player")
anim = mPlayer->getAnimation();
return anim;
}