forked from mirror/openmw-tes3mp
Fix player rendering
This commit is contained in:
parent
fef6284f15
commit
00879ab20e
2 changed files with 4 additions and 2 deletions
|
@ -95,7 +95,9 @@ namespace MWRender
|
||||||
/// Restore default camera distance for current mode.
|
/// Restore default camera distance for current mode.
|
||||||
void setCameraDistance();
|
void setCameraDistance();
|
||||||
|
|
||||||
void setAnimation(MWRender::NpcAnimation *anim);
|
void setAnimation(NpcAnimation *anim);
|
||||||
|
NpcAnimation *getAnimation() const
|
||||||
|
{ return mAnimation; }
|
||||||
|
|
||||||
void setHeight(float height);
|
void setHeight(float height);
|
||||||
float getHeight();
|
float getHeight();
|
||||||
|
|
|
@ -921,7 +921,7 @@ 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);
|
||||||
// TODO: Check mObjects too.
|
if(!anim) anim = mPlayer->getAnimation();
|
||||||
return anim;
|
return anim;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue