Disallow zero-length slider blueprint placements

This commit is contained in:
Dean Herbert 2021-04-16 14:38:30 +09:00
parent af20863799
commit 965a1ead36
2 changed files with 2 additions and 4 deletions

View File

@ -41,9 +41,7 @@ public void TestPlaceWithoutMovingMouse()
addClickStep(MouseButton.Left);
addClickStep(MouseButton.Right);
assertPlaced(true);
assertLength(0);
assertControlPointType(0, PathType.Linear);
assertPlaced(false);
}
[Test]

View File

@ -135,7 +135,7 @@ private void beginCurve()
private void endCurve()
{
updateSlider();
EndPlacement(true);
EndPlacement(HitObject.Path.ExpectedDistance?.Value > 0);
}
protected override void Update()