mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
constify getBoneByName
This commit is contained in:
parent
9d661359a1
commit
1edeffbafc
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user