diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/anim/player.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/anim/player.zig b/src/anim/player.zig index b329714..fd318ac 100644 --- a/src/anim/player.zig +++ b/src/anim/player.zig @@ -119,9 +119,10 @@ pub fn update(s: *State, in: *const sk.Input) void { } else |_| {} } // Played past the end: from the start again, or held there (a talk - // holds its last picture). + // holds its last picture, and so does a paused playhead set past the + // end: only playing loops). if (!in.exporting and d.t > d.duration + 1) { - if (s.looping and !talking) ask.to = 0 else d.t = d.duration; + if (s.looping and !talking and d.playing) ask.to = 0 else d.t = d.duration; } d.update(in, ask, talk, .{}); } |
