mirror of
https://github.com/ppy/osu
synced 2025-01-11 16:49:39 +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();
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user