1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 13:42:56 +08:00

fix wrong grid cache being used

This commit is contained in:
OliBomby 2023-12-28 22:35:00 +01:00
parent d0c8b285ce
commit a20c430d6f

View File

@ -2,8 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics;
using osu.Framework.Layout;
using osu.Game.Utils;
using osuTK;
@ -25,7 +23,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
throw new ArgumentException("Grid spacing must be positive.");
spacing = value;
gridCache.Invalidate();
GridCache.Invalidate();
}
}
@ -40,12 +38,10 @@ namespace osu.Game.Screens.Edit.Compose.Components
set
{
gridLineRotation = value;
gridCache.Invalidate();
GridCache.Invalidate();
}
}
private readonly LayoutValue gridCache = new LayoutValue(Invalidation.RequiredParentSizeToFit);
public RectangularPositionSnapGrid(Vector2 startPosition)
: base(startPosition)
{