From b7d0bf37567fe198a9e15936f2ca46ccefe1a390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Fri, 6 Oct 2023 21:39:29 +0200 Subject: [PATCH] Only flush the `Current` transform specifically --- osu.Game/Screens/Play/HUD/HealthDisplay.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/Play/HUD/HealthDisplay.cs b/osu.Game/Screens/Play/HUD/HealthDisplay.cs index 2ec63feeae..986efe3036 100644 --- a/osu.Game/Screens/Play/HUD/HealthDisplay.cs +++ b/osu.Game/Screens/Play/HUD/HealthDisplay.cs @@ -107,7 +107,9 @@ namespace osu.Game.Screens.Play.HUD // aside from the repeating `initialIncrease` scheduled task, // there may also be a `Current` transform in progress from that schedule. // ensure it plays out fully, to prevent changes to `Current.Value` being discarded by the ongoing transform. - FinishTransforms(); + // and yes, this funky `targetMember` spec is seemingly the only way to do this + // (see: https://github.com/ppy/osu-framework/blob/fe2769171c6e26d1b6fdd6eb7ea8353162fe9065/osu.Framework/Graphics/Transforms/TransformBindable.cs#L21) + FinishTransforms(targetMember: $"{Current.GetHashCode()}.{nameof(Current.Value)}"); } private void onNewJudgement(JudgementResult judgement)