Skip to content

LottieTweening: apply the dynamic tweening#46

Merged
hermet merged 1 commit into
mainfrom
hermet/tweening
Jul 6, 2026
Merged

LottieTweening: apply the dynamic tweening#46
hermet merged 1 commit into
mainfrom
hermet/tweening

Conversation

@hermet

@hermet hermet commented Jun 30, 2026

Copy link
Copy Markdown
Member

@hermet hermet requested a review from Copilot June 30, 2026 04:14
@hermet hermet self-assigned this Jun 30, 2026
@hermet hermet added the enhancement Improve examples label Jun 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Lottie tweening example to use the newer “dynamic tweening” flow, where the target frame is set up-front and the tween is advanced using only a progress value (per thorvg/thorvg#4295).

Changes:

  • Remove explicit from/to frame bookkeeping in the example and switch to tweenTo(targetFrame) + tween(progress).
  • Allow re-targeting tweening when a new state is clicked (no longer blocks when tween.active is true).

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

Comment thread src/LottieTweening.cpp
@hermet hermet merged commit dba88a5 into main Jul 6, 2026
3 of 4 checks passed
@hermet hermet deleted the hermet/tweening branch July 6, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improve examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants