Fix Stop button not working at the end of a non-looped animation

This commit is contained in:
David Rowe 2015-04-07 14:02:42 -07:00
parent 09b929b729
commit 43a130dabe

View file

@ -64,9 +64,9 @@ void AnimationHandle::setRunning(bool running) {
if (running) {
// move back to the beginning
setFrameIndex(getFirstFrame());
}
return;
}
}
_animationLoop.setRunning(running);
if (isRunning()) {
if (!_model->_runningAnimations.contains(_self)) {