1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

Remove legacy skin component fallback lookup

Has always been a source of hiding actual issues like in https://github.com/ppy/osu/issues/17745 (`sliderfollowcircle` looked up from fallback because there's no transformer), and https://github.com/ppy/osu/issues/17934 (because there's a texture `ok` and that matches the component name `HitResult.Ok`).
This commit is contained in:
Salman Ahmed 2022-04-23 01:06:35 +03:00
parent 56358ef19e
commit 69e2e30971

View File

@ -391,9 +391,10 @@ namespace osu.Game.Skinning
}
return null;
}
return this.GetAnimation(component.LookupName, false, false);
default:
throw new ArgumentOutOfRangeException(nameof(component));
}
}
private Texture? getParticleTexture(HitResult result)