mirror of
https://github.com/ppy/osu
synced 2025-02-10 07:07:53 +00:00
Add support for legacy skins which use animation frames to hide elements
This commit is contained in:
parent
43d83b35d0
commit
0636df5660
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user