mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-06 12:41:31 +00:00
constify getBoneByName
This commit is contained in:
parent
9d661359a1
commit
1edeffbafc
2 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ bool ActorAnimation::useShieldAnimations() const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
osg::Group* ActorAnimation::getBoneByName(const std::string& boneName)
|
osg::Group* ActorAnimation::getBoneByName(const std::string& boneName) const
|
||||||
{
|
{
|
||||||
if (!mObjectRoot)
|
if (!mObjectRoot)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
|
@ -41,7 +41,7 @@ class ActorAnimation : public Animation, public MWWorld::ContainerStoreListener
|
||||||
bool updateCarriedLeftVisible(const int weaptype) const override;
|
bool updateCarriedLeftVisible(const int weaptype) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
osg::Group* getBoneByName(const std::string& boneName);
|
osg::Group* getBoneByName(const std::string& boneName) const;
|
||||||
virtual void updateHolsteredWeapon(bool showHolsteredWeapons);
|
virtual void updateHolsteredWeapon(bool showHolsteredWeapons);
|
||||||
virtual void updateHolsteredShield(bool showCarriedLeft);
|
virtual void updateHolsteredShield(bool showCarriedLeft);
|
||||||
virtual void updateQuiver();
|
virtual void updateQuiver();
|
||||||
|
|
Loading…
Reference in a new issue