Fix storyboard sprites leaving gaps on edges when resolving from an atlas

This commit is contained in:
Salman Ahmed 2024-07-17 14:47:15 +03:00
parent ad2db3f853
commit c4141fff07

View File

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