mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
Fix storyboard sprites leaving gaps on edges when resolving from an atlas
This commit is contained in:
parent
ad2db3f853
commit
c4141fff07
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user