From 6e23d12655f3ab188b1115438d9c43d2ce46c248 Mon Sep 17 00:00:00 2001 From: PROMETHIA-27 <42193387+PROMETHIA-27@users.noreply.github.com> Date: Mon, 23 Jun 2025 17:46:45 -0400 Subject: [PATCH] Constant interpolated animation transitions (#50) * Set transition duration to 0s * use Duration::ZERO --- src/animation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/animation.rs b/src/animation.rs index ec567fa..f54e707 100644 --- a/src/animation.rs +++ b/src/animation.rs @@ -65,7 +65,7 @@ impl AnimationControllerItem<'_> { } } -const DEFAULT_TRANSITION_DURATION: Duration = Duration::from_millis(100); +const DEFAULT_TRANSITION_DURATION: Duration = Duration::ZERO; fn update_animation( mut animated: Query<(