1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Merge pull request #28891 from frenzibyte/fix-storyboard-positioning

Fix storyboard sprites leaving gaps on edges when "beatmap skins" is enabled
This commit is contained in:
Dean Herbert 2024-07-17 22:56:27 +09:00 committed by GitHub
commit d32fef8aee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,14 +100,15 @@ namespace osu.Game.Storyboards.Drawables
skinSourceChanged();
}
else
Texture = textureStore.Get(Sprite.Path);
Texture = textureStore.Get(Sprite.Path, WrapMode.ClampToEdge, WrapMode.ClampToEdge);
Sprite.ApplyTransforms(this);
}
private void skinSourceChanged()
{
Texture = skin.GetTexture(Sprite.Path) ?? textureStore.Get(Sprite.Path);
Texture = skin.GetTexture(Sprite.Path, WrapMode.ClampToEdge, WrapMode.ClampToEdge) ??
textureStore.Get(Sprite.Path, WrapMode.ClampToEdge, WrapMode.ClampToEdge);
// Setting texture will only update the size if it's zero.
// So let's force an explicit update.