Return a valid "lighting" response from DefaultSkin

This is temporary to allow the new sprite lookup flow to potentially be
merged before hit lighting skinnability is addressed.
This commit is contained in:
Dean Herbert 2022-04-04 20:40:19 +09:00
parent 8185020f12
commit 5f358a04e9

View File

@ -158,6 +158,13 @@ namespace osu.Game.Skinning
break;
}
switch (component.LookupName)
{
// Temporary until default skin has a valid hit lighting.
case @"lighting":
return Drawable.Empty();
}
if (GetTexture(component.LookupName) is Texture t)
return new Sprite { Texture = t };