Skip to content

Commit

Permalink
Only flush the Current transform specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Oct 6, 2023
1 parent ce0d4bd commit b7d0bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osu.Game/Screens/Play/HUD/HealthDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ private void finishInitialAnimation()
// 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)
Expand Down

0 comments on commit b7d0bf3

Please sign in to comment.