1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 01:02:56 +08:00

Fix incorrect alpha application to lines on rewinding

This commit is contained in:
Dean Herbert 2020-05-22 12:45:37 +09:00
parent d529a2aefa
commit ce35d09e7d
2 changed files with 7 additions and 3 deletions

View File

@ -199,10 +199,14 @@ namespace osu.Game.Rulesets.Mania.Edit
: Anchor.BottomLeft; : Anchor.BottomLeft;
} }
protected override void UpdateInitialTransforms()
{
// don't perform any fading we are handling that ourselves.
}
protected override void UpdateStateTransforms(ArmedState state) protected override void UpdateStateTransforms(ArmedState state)
{ {
using (BeginAbsoluteSequence(HitObject.StartTime + 1000)) LifetimeEnd = HitObject.StartTime + visible_range;
this.FadeOut();
} }
} }
} }

View File

@ -257,7 +257,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
} }
} }
if (state.Value != ArmedState.Idle && LifetimeEnd == double.MaxValue || HitObject.HitWindows == null) if (LifetimeEnd == double.MaxValue && (state.Value != ArmedState.Idle || HitObject.HitWindows == null))
Expire(); Expire();
// apply any custom state overrides // apply any custom state overrides