Skip to content

Commit

Permalink
[Animations] Fix Animator removeAll and removeFinished
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Apr 15, 2024
1 parent 6ca64f9 commit 05c72d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Aardvark.UI.Primitives/Animation/Animator/AnimatorApp.fs
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ module Animator =

/// Removes all animation slots.
let removeAll (model : 'Model) =
model |> filter (fun _ -> true)
model |> filter (fun _ -> false)

/// Removes all finished animation slots.
let removeFinished (model : 'Model) =
model |> filter (fun s -> s.Current.IsFinished)
model |> filter (fun s -> not s.Current.IsFinished)

/// Stops the current animation instance in the slot with the given name if it exists.
/// The name can be a string or Symbol.
Expand Down

0 comments on commit 05c72d0

Please sign in to comment.