Add support for legacy skins which use animation frames to hide elements

This commit is contained in:
Dean Herbert 2019-07-01 18:13:14 +09:00
parent 43d83b35d0
commit 0636df5660

View File

@ -81,7 +81,10 @@ namespace osu.Game.Skinning
};
}
var texture = GetTexture(componentName);
// temporary allowance is given for skins the fact that stable handles non-animatable items such as hitcircles (incorrectly)
// by (incorrectly) displaying the first frame of animation rather than the non-animated version.
// users have userd this to "hide" certain elements like hit300.
var texture = GetTexture($"{componentName}-0") ?? GetTexture(componentName);
if (texture == null)
return null;