mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Fix CursorTrail corruption by resetting on load.
This commit is contained in:
@ -32,7 +32,7 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
private double timeOffset;
|
private double timeOffset;
|
||||||
|
|
||||||
private float time;
|
private float time;
|
||||||
|
|
||||||
private TrailDrawNodeSharedData trailDrawNodeSharedData = new TrailDrawNodeSharedData();
|
private TrailDrawNodeSharedData trailDrawNodeSharedData = new TrailDrawNodeSharedData();
|
||||||
private const int max_sprites = 2048;
|
private const int max_sprites = 2048;
|
||||||
|
|
||||||
@ -77,6 +77,12 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
Scale = new Vector2(1 / texture.ScaleAdjust);
|
Scale = new Vector2(1 / texture.ScaleAdjust);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
resetTime();
|
||||||
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
Reference in New Issue
Block a user