Skip to content

Commit

Permalink
[Animation] Fix broken Animator.get
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Feb 13, 2025
1 parent 20b2a46 commit 11c3f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- [Animation] Improved adaptive sampling scheme for splines to avoid infinite recursion when control points are coinciding
- [Animation] Fixed issue with ticks not being processed when all animations are paused
- [Animation] Adjust action processing to resolve an issue with events when restarting an animation
- [Animation] Fixed broken Animator.get (wrong return type)

### 5.5.2
- updated Adaptify.Core to 1.3.0 (using local, new style adaptify)
Expand Down
2 changes: 1 addition & 1 deletion src/Aardvark.UI.Primitives/Animation/Animator/Querying.fs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module AnimatorQuerying =
/// </summary>
/// <exception cref="KeyNotFoundException">Thrown if the slot does not exist.</exception>
/// <exception cref="InvalidCastException">Thrown if the animation instance is not of the expected type.</exception>
let inline get (name : ^Name) (model : 'Model) : IAnimation<'Model, 'Value> =
let inline get (name : ^Name) (model : 'Model) : IAnimationInstance<'Model, 'Value> =
model |> getUntyped name |> unbox

/// Returns whether an animator slot with the given name exists.
Expand Down

0 comments on commit 11c3f62

Please sign in to comment.