Remove redundant getPlayerAnimation function

openmw-38
scrawl 9 years ago
parent c9ca5bc946
commit ed101ad35a

@ -714,11 +714,6 @@ namespace MWRender
return mObjects->getAnimation(ptr);
}
MWRender::Animation* RenderingManager::getPlayerAnimation()
{
return mPlayerAnimation.get();
}
void RenderingManager::setupPlayer(const MWWorld::Ptr &player)
{
if (!mPlayerNode)

@ -137,7 +137,6 @@ namespace MWRender
Animation* getAnimation(const MWWorld::Ptr& ptr);
const Animation* getAnimation(const MWWorld::ConstPtr& ptr) const;
Animation* getPlayerAnimation();
void addWaterRippleEmitter(const MWWorld::Ptr& ptr);
void removeWaterRippleEmitter(const MWWorld::Ptr& ptr);

@ -2109,8 +2109,6 @@ namespace MWWorld
MWRender::Animation* World::getAnimation(const MWWorld::Ptr &ptr)
{
if (ptr == getPlayerPtr())
return mRendering->getPlayerAnimation();
return mRendering->getAnimation(ptr);
}

Loading…
Cancel
Save