mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Revert "Ensure all frames in an animation are retrieved from the same skin"
This reverts commit 37c8c63fc5
.
This commit is contained in:
parent
b87a5956dd
commit
b904fa6615
@ -54,16 +54,9 @@ namespace osu.Game.Skinning
|
||||
|
||||
IEnumerable<Texture> getTextures()
|
||||
{
|
||||
ISkin lookupSource = null;
|
||||
|
||||
for (int i = 0; true; i++)
|
||||
{
|
||||
string frameName = $"{componentName}{animationSeparator}{i}";
|
||||
|
||||
// ensure all textures are retrieved from the same skin source.
|
||||
lookupSource ??= source.FindProvider(s => s.GetTexture(frameName, wrapModeS, wrapModeT) != null);
|
||||
|
||||
if ((texture = lookupSource?.GetTexture(frameName, wrapModeS, wrapModeT)) == null)
|
||||
if ((texture = source.GetTexture($"{componentName}{animationSeparator}{i}", wrapModeS, wrapModeT)) == null)
|
||||
break;
|
||||
|
||||
yield return texture;
|
||||
|
Loading…
Reference in New Issue
Block a user