constify getBoneByName

pull/3100/head^2
Bret Curtis 3 years ago
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…
Cancel
Save