Merge pull request #2154 from akortunov/animfix

Do not check if additional animation sources are supported for every animation object
pull/541/head
Bret Curtis 6 years ago committed by GitHub
commit 038a4c46c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}

@ -273,8 +273,6 @@ protected:
osg::ref_ptr<SceneUtil::LightListCallback> mLightListCallback;
bool mUseAdditionalSources;
const NodeMap& getNodeMap() const;
/* Sets the appropriate animations on the bone groups based on priority.

Loading…
Cancel
Save