Skip to content

Commit c4141ff

Browse files
committed
Fix storyboard sprites leaving gaps on edges when resolving from an atlas
1 parent ad2db3f commit c4141ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

osu.Game/Storyboards/Drawables/DrawableStoryboardSprite.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,15 @@ private void load(Storyboard storyboard)
100100
skinSourceChanged();
101101
}
102102
else
103-
Texture = textureStore.Get(Sprite.Path);
103+
Texture = textureStore.Get(Sprite.Path, WrapMode.ClampToEdge, WrapMode.ClampToEdge);
104104

105105
Sprite.ApplyTransforms(this);
106106
}
107107

108108
private void skinSourceChanged()
109109
{
110-
Texture = skin.GetTexture(Sprite.Path) ?? textureStore.Get(Sprite.Path);
110+
Texture = skin.GetTexture(Sprite.Path, WrapMode.ClampToEdge, WrapMode.ClampToEdge) ??
111+
textureStore.Get(Sprite.Path, WrapMode.ClampToEdge, WrapMode.ClampToEdge);
111112

112113
// Setting texture will only update the size if it's zero.
113114
// So let's force an explicit update.

0 commit comments

Comments
 (0)