1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 06:21:22 +08:00

fix wrong grid cache being used

This commit is contained in:
OliBomby
2023-12-28 22:35:00 +01:00
Unverified
parent d0c8b285ce
commit a20c430d6f
@@ -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)
{