Merge pull request #15242 from peppy/fix-low-pass-sticking-after-fail

Fix low-pass filter continuing to take effect after fail animation has already ended
This commit is contained in:
Dan Balasescu 2021-10-22 19:04:03 +09:00 committed by GitHub
commit 14a7b00f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ namespace osu.Game.Screens.Play
this.TransformBindableTo(trackFreq, 0, duration).OnComplete(_ => this.TransformBindableTo(trackFreq, 0, duration).OnComplete(_ =>
{ {
RemoveFilters();
OnComplete?.Invoke(); OnComplete?.Invoke();
}); });
@ -137,6 +138,9 @@ namespace osu.Game.Screens.Play
public void RemoveFilters() public void RemoveFilters()
{ {
if (filters.Parent == null)
return;
RemoveInternal(filters); RemoveInternal(filters);
filters.Dispose(); filters.Dispose();