1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 07:53:52 +00:00

Set the animation state loop flag as appropriate

This commit is contained in:
Chris Robinson 2013-01-29 00:50:52 -08:00
parent 92d0c55f32
commit 879359f39d

View file

@ -184,6 +184,7 @@ void Animation::play(const std::string &groupname, const std::string &start, boo
mAnimState->setEnabled(false);
mAnimState = mEntityList.mSkelBase->getAnimationState(groupname);
mAnimState->setEnabled(true);
mAnimState->setLoop(loop);
mCurrentKeys = &mTextKeys[groupname];
mLooping = loop;