Skip to content

Commit

Permalink
Fix FieldAnimationComponent skipping last frame
Browse files Browse the repository at this point in the history
GitHub: #124
  • Loading branch information
RedEpicness authored Sep 29, 2023
1 parent d4dfb84 commit 7fa686f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ sealed class FieldAnimationComponent<T>(
override fun animationFrame() {
super.animationFrame()

if (!isComplete())
setValue(getPercentComplete())
setValue(getPercentComplete())
}

abstract fun setValue(percentComplete: Float)
Expand Down

0 comments on commit 7fa686f

Please sign in to comment.