1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 20:23:00 +08:00

Move TODO comment to correct location

This commit is contained in:
Salman Ahmed 2021-06-11 11:46:29 +03:00
parent 8132852753
commit 2e01e61177
2 changed files with 1 additions and 3 deletions

View File

@ -56,6 +56,7 @@ namespace osu.Game.Skinning
SkinSources.Add(Ruleset.CreateLegacySkinProvider(skinManager.CurrentSkin.Value, Beatmap));
// TODO: we also want to return a DefaultLegacySkin here if the current *beatmap* is providing any skinned elements.
if (skinManager.CurrentSkin.Value is LegacySkin)
SkinSources.Add(Ruleset.CreateLegacySkinProvider(skinManager.DefaultLegacySkin, Beatmap));

View File

@ -247,9 +247,6 @@ namespace osu.Game.Skinning
if (lookupFunction(CurrentSkin.Value) is T skinSourced)
return skinSourced;
// TODO: we also want to return a DefaultLegacySkin here if the current *beatmap* is providing any skinned elements.
// When attempting to address this, we may want to move the full DefaultLegacySkin fallback logic to within Player itself (to better allow
// for beatmap skin visibility).
if (CurrentSkin.Value is LegacySkin && lookupFunction(DefaultLegacySkin) is T legacySourced)
return legacySourced;