Files
sor/Client
192a2b2380 Fix: animation loop glitch + seamless one-shot → idle transition
Three bugs fixed in _play_unit_anim:

1. Idle restarts mid-loop: the "don't restart" guard was `if not loop`,
   so calling _play_unit_anim(iid,"idle",true) while idle was already
   playing called ap.play() again, resetting to frame 0 (bind-pose flash).
   Fixed: guard now applies to both loop and one-shot animations.

2. Bind-pose gap between one-shot end and idle: animation_finished
   signal fires one process frame after the animation ends, leaving the
   AnimationPlayer in a stopped state for that frame → T-pose flash.
   Fixed: use ap.queue(idle_track) immediately after ap.play(one_shot),
   so Godot transitions without any gap.

3. Dying animation transitions to idle: the one-shot path queued idle
   after every non-loop animation including dying/death, overriding the
   death-hold frame.  Fixed: skip idle queue for dying/death/die.

Also remove [Anim]/[Move]/[Rebuild] debug prints now that animations
are confirmed working.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-15 21:11:31 -04:00
..