1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 04:53:12 +08:00

Refresh the grid after a placement

This commit is contained in:
smoogipoo 2019-10-18 19:04:08 +09:00
parent 5dd5a070e0
commit 190a83da6e

View File

@ -244,7 +244,11 @@ namespace osu.Game.Rulesets.Edit
hitObject.StartTime = GetSnappedTime(hitObject.StartTime, distanceSnapGrid.ToLocalSpace(inputManager.CurrentState.Mouse.Position)); hitObject.StartTime = GetSnappedTime(hitObject.StartTime, distanceSnapGrid.ToLocalSpace(inputManager.CurrentState.Mouse.Position));
} }
public void EndPlacement(HitObject hitObject) => EditorBeatmap.Add(hitObject); public void EndPlacement(HitObject hitObject)
{
EditorBeatmap.Add(hitObject);
showGridFor(Enumerable.Empty<HitObject>());
}
public void Delete(HitObject hitObject) => EditorBeatmap.Remove(hitObject); public void Delete(HitObject hitObject) => EditorBeatmap.Remove(hitObject);