ludic.anim: animset_choice names the playing choice's clip as the set does, animset_can says whether the rig carries any of a state's clips (a one-shot with none is not asked for)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 20:19:05 +03:00
parent a22b8a572b
commit a87f20c66e
6 changed files with 35 additions and 3 deletions

View file

@ -6,6 +6,7 @@ export function animset_tick(anim_st: mut AnimState, pl: AnimPlayer, sk: Skin, d
let d = AnimSets[pl.set].states[pl.state]
let k = as_pick(pl, d)
if k < 0 { return false }
pl.pick = k
pl.rate = as_rate(pl, d, d.choices[k])
as_switch(pl, d, pl.clips[pl.base[pl.state] + k])
let adv = dt * pl.rate