Skip to content

fix: correct behaviors of control events#696

Merged
Mivik merged 9 commits intoTeamFlos:mainfrom
Naptie:main
Mar 11, 2026
Merged

fix: correct behaviors of control events#696
Mivik merged 9 commits intoTeamFlos:mainfrom
Naptie:main

Conversation

@Naptie
Copy link
Contributor

@Naptie Naptie commented Mar 10, 2026

This PR introduces a fix for behaviors of control events. Previously, the application failed to correctly assign the specified tweens to their corresponding intervals, resulting in inconsistency with RPE. In this PR, the tweens array is shifted by one position before joining with other properties, so as to align with the behaviors seen in RPE.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes RPE control-event easing behavior by aligning how easing/tween functions are associated with control keyframe intervals to match RPE’s “easing applies to the interval ending at this event” semantics.

Changes:

  • Shift control-event tween assignment by one event so each keyframe uses the next event’s easing for the interval [kf[i], kf[i+1]].
  • Build an explicit tweens vector and zip it with control-event keyframes when constructing AnimFloat.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@Mivik Mivik merged commit cd08329 into TeamFlos:main Mar 11, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants