diff src/semicongine/animation.nim @ 753:eb5ae1f1bc87

fix: do not apply last frame value after animation has stopped
author Sam <sam@basx.dev>
date Tue, 20 Jun 2023 00:30:58 +0700
parents 0b5566fc214d
children da0bd61abe91
line wrap: on
line diff
--- a/src/semicongine/animation.nim	Mon Jun 19 01:14:58 2023 +0700
+++ b/src/semicongine/animation.nim	Tue Jun 20 00:30:58 2023 +0700
@@ -36,7 +36,7 @@
   AnimationPlayer*[T] = object
     animation*: Animation[T]
     currentTime: float32
-    playing: bool
+    playing*: bool
     currentDirection: int
     currentIteration: int
     currentValue*: T