forked from mirror/openmw-tes3mp
Remove redundant getPlayerAnimation function
This commit is contained in:
parent
c9ca5bc946
commit
ed101ad35a
3 changed files with 0 additions and 8 deletions
|
@ -714,11 +714,6 @@ namespace MWRender
|
||||||
return mObjects->getAnimation(ptr);
|
return mObjects->getAnimation(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
MWRender::Animation* RenderingManager::getPlayerAnimation()
|
|
||||||
{
|
|
||||||
return mPlayerAnimation.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
void RenderingManager::setupPlayer(const MWWorld::Ptr &player)
|
void RenderingManager::setupPlayer(const MWWorld::Ptr &player)
|
||||||
{
|
{
|
||||||
if (!mPlayerNode)
|
if (!mPlayerNode)
|
||||||
|
|
|
@ -137,7 +137,6 @@ namespace MWRender
|
||||||
|
|
||||||
Animation* getAnimation(const MWWorld::Ptr& ptr);
|
Animation* getAnimation(const MWWorld::Ptr& ptr);
|
||||||
const Animation* getAnimation(const MWWorld::ConstPtr& ptr) const;
|
const Animation* getAnimation(const MWWorld::ConstPtr& ptr) const;
|
||||||
Animation* getPlayerAnimation();
|
|
||||||
|
|
||||||
void addWaterRippleEmitter(const MWWorld::Ptr& ptr);
|
void addWaterRippleEmitter(const MWWorld::Ptr& ptr);
|
||||||
void removeWaterRippleEmitter(const MWWorld::Ptr& ptr);
|
void removeWaterRippleEmitter(const MWWorld::Ptr& ptr);
|
||||||
|
|
|
@ -2109,8 +2109,6 @@ namespace MWWorld
|
||||||
|
|
||||||
MWRender::Animation* World::getAnimation(const MWWorld::Ptr &ptr)
|
MWRender::Animation* World::getAnimation(const MWWorld::Ptr &ptr)
|
||||||
{
|
{
|
||||||
if (ptr == getPlayerPtr())
|
|
||||||
return mRendering->getPlayerAnimation();
|
|
||||||
return mRendering->getAnimation(ptr);
|
return mRendering->getAnimation(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue