mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-02 03:45:32 +00:00
Do not return the player's Animation object for non-players
This commit is contained in:
parent
9c3af5f344
commit
7ec73c29f2
1 changed files with 2 additions and 1 deletions
|
@ -923,7 +923,8 @@ void RenderingManager::setupExternalRendering (MWRender::ExternalRendering& rend
|
||||||
Animation* RenderingManager::getAnimation(const MWWorld::Ptr &ptr)
|
Animation* RenderingManager::getAnimation(const MWWorld::Ptr &ptr)
|
||||||
{
|
{
|
||||||
Animation *anim = mActors.getAnimation(ptr);
|
Animation *anim = mActors.getAnimation(ptr);
|
||||||
if(!anim) anim = mPlayer->getAnimation();
|
if(!anim && ptr.getRefData().getHandle() == "player")
|
||||||
|
anim = mPlayer->getAnimation();
|
||||||
return anim;
|
return anim;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue