mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Consider not adding legacy skin transformers to non-legacy skins
This commit is contained in:
@ -12,7 +12,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
/// <summary>
|
||||
/// A type of <see cref="SkinProvidingContainer"/> that provides access to the beatmap skin and user skin,
|
||||
/// each transformed with the ruleset's own skin transformer individually.
|
||||
/// with each legacy skin source transformed with the ruleset's legacy skin transformer.
|
||||
/// </summary>
|
||||
public class RulesetSkinProvidingContainer : SkinProvidingContainer
|
||||
{
|
||||
@ -66,7 +66,7 @@ namespace osu.Game.Skinning
|
||||
|
||||
protected ISkin GetRulesetTransformedSkin(ISkin skin)
|
||||
{
|
||||
if (skin == null)
|
||||
if (!(skin is LegacySkin))
|
||||
return null;
|
||||
|
||||
var rulesetTransformed = Ruleset.CreateLegacySkinProvider(skin, Beatmap);
|
||||
|
Reference in New Issue
Block a user