Skip to content

(cherry-pick) fix: Invalid web LA keyframe processing when from/to offset is used #8036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

MatiPl01
Copy link
Member

@MatiPl01 MatiPl01 commented Aug 7, 2025

Cherry-pick of the #8035

…8035)

## Summary

The previous implementation used an invalid type for the
`KeyframeDefinitions` type assuming that all keys in
`KeyframeDefinitions` are numbers. Because of that, it also converted
all keys to numbers via the `.map(Number)` mapping which gave `NaN`
offset values in the `offsets` array. As a result, the easing shift
didn't work properly as `NaN` aren't valid offsets so we were getting
`undefined` instead of the valid keyframe definition object.

## Example recordings

### Before


https://github.com/user-attachments/assets/1dd8933c-1811-41c7-ada1-4a87c29404c3

### After


https://github.com/user-attachments/assets/7b62f9ad-8d29-4e0f-99e4-89faf2cc19c6
@MatiPl01 MatiPl01 requested a review from m-bert August 7, 2025 13:52
@MatiPl01 MatiPl01 self-assigned this Aug 7, 2025
@MatiPl01 MatiPl01 mentioned this pull request Aug 7, 2025
15 tasks
@MatiPl01 MatiPl01 merged commit 83eb8a8 into 4.0-stable Aug 7, 2025
11 checks passed
@MatiPl01 MatiPl01 deleted the @matipl01/cherry-pick/add-from-to-keyframe-offset-support-on-web branch August 7, 2025 14:05
@MatiPl01 MatiPl01 changed the title (cheryy-pick) fix: Invalid web LA keyframe processing when from/to offset is used (cherry-pick) fix: Invalid web LA keyframe processing when from/to offset is used Aug 7, 2025
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.

2 participants