mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +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.Right);
|
||||
|
||||
assertPlaced(true);
|
||||
assertLength(0);
|
||||
assertControlPointType(0, PathType.Linear);
|
||||
assertPlaced(false);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -135,7 +135,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
private void endCurve()
|
||||
{
|
||||
updateSlider();
|
||||
EndPlacement(true);
|
||||
EndPlacement(HitObject.Path.ExpectedDistance?.Value > 0);
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
|
Loading…
Reference in New Issue
Block a user