From 05c72d02710cfc692f6af65a7efde6c521245e92 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 15 Apr 2024 18:54:28 +0200 Subject: [PATCH] [Animations] Fix Animator removeAll and removeFinished --- src/Aardvark.UI.Primitives/Animation/Animator/AnimatorApp.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Aardvark.UI.Primitives/Animation/Animator/AnimatorApp.fs b/src/Aardvark.UI.Primitives/Animation/Animator/AnimatorApp.fs index 2b3ac2a3..71350046 100644 --- a/src/Aardvark.UI.Primitives/Animation/Animator/AnimatorApp.fs +++ b/src/Aardvark.UI.Primitives/Animation/Animator/AnimatorApp.fs @@ -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.