Skip to content

Commit

Permalink
change lerp
Browse files Browse the repository at this point in the history
the previous lerp implementation could cause in certain scenarios that if t = 1, the output would be different than the input.
Because of floating point precision, `a - (b - a)` wasn't guaranteed to return `b`.
Down the line, when using trim paths for example, this small difference could cause the path not to draw properly.
Changing it to this implementation solves the issue.

Diffs=
1be3488d52 change lerp (#9000)
  • Loading branch information
bodymovin committed Feb 8, 2025
1 parent d8e8836 commit 06fca60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19b64a2c1bbe9d0e1e7166b3290e34e3e291b018
1be3488d52ec4c2f32a03eb111afca5b1f01ecd8
2 changes: 1 addition & 1 deletion submodules/rive-runtime

0 comments on commit 06fca60

Please sign in to comment.