Function apply_curve

Source
pub fn apply_curve(
    preset: &CurvePreset,
    anim: &mut Animated,
    clip_duration: f64,
    _scaled: bool,
)
Expand description

Apply a curve preset to a property: normalised times are stretched to clip_duration, absolute presets keep their seconds. Replaces existing keys. scaled is kept for the callers’ “exact” button but is only meaningful for absolute presets, which ignore the duration anyway — placing a normalised preset’s 0..1 times as seconds would crush the whole animation into the clip’s first second. See capture_curve: nothing but tests saves absolute.