mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 23:00:20 +02:00
Fix Stop button not working at the end of a non-looped animation
This commit is contained in:
parent
09b929b729
commit
43a130dabe
1 changed files with 1 additions and 1 deletions
|
@ -64,9 +64,9 @@ void AnimationHandle::setRunning(bool running) {
|
||||||
if (running) {
|
if (running) {
|
||||||
// move back to the beginning
|
// move back to the beginning
|
||||||
setFrameIndex(getFirstFrame());
|
setFrameIndex(getFirstFrame());
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
_animationLoop.setRunning(running);
|
_animationLoop.setRunning(running);
|
||||||
if (isRunning()) {
|
if (isRunning()) {
|
||||||
if (!_model->_runningAnimations.contains(_self)) {
|
if (!_model->_runningAnimations.contains(_self)) {
|
||||||
|
|
Loading…
Reference in a new issue