pub fn passed_reaches_key(
passed_frames: &[i32],
set_frame: i32,
skip_set_frame: bool,
is_key: impl Fn(i32) -> bool,
) -> boolExpand description
Decide whether an OverwriteOnNextKeyframe override should hand over this
update, from the frames the controller actually traversed (passed_frames).
Handover fires when any passed frame is a surviving keyframe of the
attribute, except that through the update of the first evaluation
(skip_set_frame) the override’s own set_frame is skipped — setting on (or
the first update sitting on) a keyframe wins that keyframe’s segment rather
than reclaiming immediately. Using the traversed frames makes this section /
loop / reverse / ping-pong correct without any direction or wrap-point
bookkeeping.