mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Consider having only 1 control point as being deleted
This commit is contained in:
parent
47f3c4a596
commit
bd2b0af269
@ -116,8 +116,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
|
|||||||
slider.Path.ControlPoints.Remove(c);
|
slider.Path.ControlPoints.Remove(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are 0 remaining control points, treat the slider as being deleted
|
// If there are 0 or 1 remaining control points, the slider is in a degenerate (single point) form and should be deleted
|
||||||
if (slider.Path.ControlPoints.Count == 0)
|
if (slider.Path.ControlPoints.Count <= 1)
|
||||||
{
|
{
|
||||||
placementHandler?.Delete(slider);
|
placementHandler?.Delete(slider);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user