1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 05:32:54 +08:00

Remove objects when polygon is invalid

This commit is contained in:
Marvin Schürz 2024-10-11 11:46:57 +02:00
parent 96769897bf
commit 5c74fceff6

View File

@ -172,6 +172,8 @@ namespace osu.Game.Rulesets.Osu.Edit
if (position.X < 0 || position.Y < 0 || position.X > OsuPlayfield.BASE_SIZE.X || position.Y > OsuPlayfield.BASE_SIZE.Y)
{
commitButton.Enabled.Value = false;
editorBeatmap.RemoveRange(insertedCircles);
insertedCircles.Clear();
return;
}