From 63b15f2b58c91afc372765785d0233f733af73e2 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 12:30:09 -0300 Subject: anim: only a playing deck loops past its end: the stock player sent a paused playhead set past the end back to 0 on the next update, where the player before the Deck held the end while paused (a script that shoots a scene's last picture at deck.t 999 got an empty frame); a talk still holds its last picture; zig build test 192/192 steps, 152/152 tests; 01-computeranim's anim tests 203/203 on it Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- src/anim/player.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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, .{}); } -- cgit v1.3