From f73307876e34d3a8da86c98d0eae3ddee52ae506 Mon Sep 17 00:00:00 2001 From: rrex971 <75212090+rrex971@users.noreply.github.com> Date: Mon, 8 Dec 2025 02:19:29 +0530 Subject: [PATCH] Also apply alpha logic to StoryboardAnimation sprites too. --- .../Storyboards/Drawables/DrawableStoryboardAnimation.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osu.Game/Storyboards/Drawables/DrawableStoryboardAnimation.cs b/osu.Game/Storyboards/Drawables/DrawableStoryboardAnimation.cs index f66f84af7a..3895101a51 100644 --- a/osu.Game/Storyboards/Drawables/DrawableStoryboardAnimation.cs +++ b/osu.Game/Storyboards/Drawables/DrawableStoryboardAnimation.cs @@ -89,6 +89,13 @@ namespace osu.Game.Storyboards.Drawables LifetimeEnd = animation.EndTimeForDisplay; } + // Match stable behavior with alpha values > 1 during interpolation (eg. overshoot easings like InOutElastic etc.) + protected override void Update() + { + base.Update(); + if (Alpha > 1) Alpha = 0; + } + [Resolved] private ISkinSource skin { get; set; }