fix(assets/animator): make sure that pauseAtEnd works as intended
Fixes #37
This commit is contained in:
parent
3a696ee58c
commit
f61f529302
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ function Animator:update(dt)
|
|||
if self.frameTimer > 1 then
|
||||
self.frameTimer = 0
|
||||
if self.frame == self.animationData.endAt then
|
||||
if not (self.animationData.pauseAtEnd) then
|
||||
self.frame = self.animationData.loop
|
||||
end
|
||||
else
|
||||
self.frame = self.frame + 1
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue