diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index 7730b9104..035908922 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -641,8 +641,6 @@ namespace MWRender mAnimationTimePtr[i].reset(new AnimationTime); mLightListCallback = new SceneUtil::LightListCallback; - - mUseAdditionalSources = Settings::Manager::getBool ("use additional anim sources", "Game"); } Animation::~Animation() @@ -754,7 +752,8 @@ namespace MWRender addSingleAnimSource(kfname, baseModel); - if (mUseAdditionalSources) + static const bool useAdditionalSources = Settings::Manager::getBool ("use additional anim sources", "Game"); + if (useAdditionalSources) loadAllAnimationsInFolder(kfname, baseModel); } diff --git a/apps/openmw/mwrender/animation.hpp b/apps/openmw/mwrender/animation.hpp index 47edbdc0b..153f2ead9 100644 --- a/apps/openmw/mwrender/animation.hpp +++ b/apps/openmw/mwrender/animation.hpp @@ -273,8 +273,6 @@ protected: osg::ref_ptr mLightListCallback; - bool mUseAdditionalSources; - const NodeMap& getNodeMap() const; /* Sets the appropriate animations on the bone groups based on priority.