1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix missing newline

This commit is contained in:
Naxess 2021-03-22 19:03:55 +01:00
parent a7076c329c
commit 6911a1b415

View File

@ -174,6 +174,7 @@ namespace osu.Game.Rulesets.Objects
{
bool found = false;
List<PathControlPoint> pointsInCurrentSegment = new List<PathControlPoint>();
foreach (PathControlPoint point in ControlPoints)
{
if (point.Type.Value != null)
@ -241,6 +242,12 @@ namespace osu.Game.Rulesets.Objects
if (Math.Abs(det) < threshold)
pointsInSegment[0].Type.Value = PathType.Bezier;
}
// where the latter is much faster, hence differing thresholds
bool exterior = abSq > acSq || bcSq > acSq;
float threshold = exterior ? 0.05f : 0.001f;
if (Math.Abs(det) < threshold)
pointsInSegment[0].Type.Value = PathType.Bezier;
}
private void invalidate()