apply_smart_boolean_interpolation

Function apply_smart_boolean_interpolation 

Source
pub(super) fn apply_smart_boolean_interpolation(
    outgoing: &mut PresetSlot,
    incoming: &mut PresetSlot,
    progress: f32,
)
Expand description

Lerp the motion params between the outgoing preset’s slot and the incoming one’s, then push the result into both evaluator contexts.

progress is the raw [0, 1] linear value — passing the eased value would distort the morph asymmetrically against the alpha crossfade. At progress = 0 both contexts end up with the outgoing preset’s motion; at progress = 1 with the incoming one’s; in between, the linear midpoint.

Boolean flags snap to the incoming preset’s value at progress >= 0.5, otherwise to the outgoing preset’s.