mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Disallow zero-length slider blueprint placements
This commit is contained in:
parent
af20863799
commit
965a1ead36
@ -41,9 +41,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
|||||||
addClickStep(MouseButton.Left);
|
addClickStep(MouseButton.Left);
|
||||||
addClickStep(MouseButton.Right);
|
addClickStep(MouseButton.Right);
|
||||||
|
|
||||||
assertPlaced(true);
|
assertPlaced(false);
|
||||||
assertLength(0);
|
|
||||||
assertControlPointType(0, PathType.Linear);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -135,7 +135,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
|||||||
private void endCurve()
|
private void endCurve()
|
||||||
{
|
{
|
||||||
updateSlider();
|
updateSlider();
|
||||||
EndPlacement(true);
|
EndPlacement(HitObject.Path.ExpectedDistance?.Value > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
|
Loading…
Reference in New Issue
Block a user