Fix replay analysis overlay being affected by visibility impairing mods

Closes https://github.com/ppy/osu/issues/29748.
This commit is contained in:
Bartłomiej Dach 2024-09-11 15:55:02 +02:00
parent 4a39873e2a
commit f38ae5f239
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ private void load(ReplayPlayer? replayPlayer)
{
ReplayAnalysisOverlay analysisOverlay;
PlayfieldAdjustmentContainer.Add(analysisOverlay = new ReplayAnalysisOverlay(replayPlayer.Score.Replay));
Overlays.Add(analysisOverlay.CreateProxy().With(p => p.Depth = float.NegativeInfinity));
replayPlayer.AddSettings(new ReplayAnalysisSettings(Config));
cursorHideEnabled = Config.GetBindable<bool>(OsuRulesetSetting.ReplayCursorHideEnabled);