Skip to content

Commit

Permalink
Merge pull request #87 from Ali-RS/Ali-RS-patch-1
Browse files Browse the repository at this point in the history
Fixed an issue with TweenAnimation where isRunning() always returns false for nonlooping animations.
  • Loading branch information
pspeed42 authored Jul 2, 2020
2 parents b285792 + 56299fb commit 909e396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/simsilica/lemur/anim/TweenAnimation.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public boolean isLooping() {
* Returns true if the animation is currently running.
*/
public boolean isRunning() {
return (loop && running) && t >= 0;
return running && (loop || t >= 0);
}

/**
Expand Down

0 comments on commit 909e396

Please sign in to comment.