mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 03:22:57 +08:00
Remove objects when polygon is invalid
This commit is contained in:
parent
96769897bf
commit
5c74fceff6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user