mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 05:53:10 +08:00
Fix potentially adding the same skin multiple times
This commit is contained in:
parent
d6d87e1975
commit
b6947c25ec
@ -57,9 +57,10 @@ namespace osu.Game.Skinning
|
||||
SkinSources.Add(GetRulesetTransformedSkin(skinManager.CurrentSkin.Value));
|
||||
|
||||
// TODO: we also want to return a DefaultLegacySkin here if the current *beatmap* is providing any skinned elements.
|
||||
if (skinManager.CurrentSkin.Value is LegacySkin)
|
||||
if (skinManager.CurrentSkin.Value is LegacySkin && skinManager.CurrentSkin.Value != skinManager.DefaultLegacySkin)
|
||||
SkinSources.Add(GetRulesetTransformedSkin(skinManager.DefaultLegacySkin));
|
||||
|
||||
if (skinManager.CurrentSkin.Value != skinManager.DefaultSkin)
|
||||
SkinSources.Add(GetRulesetTransformedSkin(skinManager.DefaultSkin));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user