mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Fix SkinnableSprite
lookups broken in lazer-first skins
Regressed with removal of local `GetTexture` calls in e19ba65f91
This commit is contained in:
@ -82,21 +82,14 @@ namespace osu.Game.Skinning
|
||||
|
||||
public override Drawable? GetDrawableComponent(ISkinComponentLookup lookup)
|
||||
{
|
||||
// Temporary until default skin has a valid hit lighting.
|
||||
if ((lookup as SkinnableSprite.SpriteComponentLookup)?.LookupName == @"lighting") return Drawable.Empty();
|
||||
|
||||
if (base.GetDrawableComponent(lookup) is Drawable c)
|
||||
return c;
|
||||
|
||||
switch (lookup)
|
||||
{
|
||||
case SkinnableSprite.SpriteComponentLookup spriteLookup:
|
||||
switch (spriteLookup.LookupName)
|
||||
{
|
||||
// Temporary until default skin has a valid hit lighting.
|
||||
case @"lighting":
|
||||
return Drawable.Empty();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case GlobalSkinComponentLookup globalLookup:
|
||||
switch (globalLookup.Lookup)
|
||||
{
|
||||
|
Reference in New Issue
Block a user