1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

constify getBoneByName

This commit is contained in:
Bret Curtis 2021-09-09 23:57:20 +02:00
parent 9d661359a1
commit 1edeffbafc
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ bool ActorAnimation::useShieldAnimations() const
return false;
}
osg::Group* ActorAnimation::getBoneByName(const std::string& boneName)
osg::Group* ActorAnimation::getBoneByName(const std::string& boneName) const
{
if (!mObjectRoot)
return nullptr;

View File

@ -41,7 +41,7 @@ class ActorAnimation : public Animation, public MWWorld::ContainerStoreListener
bool updateCarriedLeftVisible(const int weaptype) const override;
protected:
osg::Group* getBoneByName(const std::string& boneName);
osg::Group* getBoneByName(const std::string& boneName) const;
virtual void updateHolsteredWeapon(bool showHolsteredWeapons);
virtual void updateHolsteredShield(bool showCarriedLeft);
virtual void updateQuiver();