mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Fix missing newline
This commit is contained in:
parent
a7076c329c
commit
6911a1b415
@ -174,6 +174,7 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
{
|
{
|
||||||
bool found = false;
|
bool found = false;
|
||||||
List<PathControlPoint> pointsInCurrentSegment = new List<PathControlPoint>();
|
List<PathControlPoint> pointsInCurrentSegment = new List<PathControlPoint>();
|
||||||
|
|
||||||
foreach (PathControlPoint point in ControlPoints)
|
foreach (PathControlPoint point in ControlPoints)
|
||||||
{
|
{
|
||||||
if (point.Type.Value != null)
|
if (point.Type.Value != null)
|
||||||
@ -241,6 +242,12 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
if (Math.Abs(det) < threshold)
|
if (Math.Abs(det) < threshold)
|
||||||
pointsInSegment[0].Type.Value = PathType.Bezier;
|
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()
|
private void invalidate()
|
||||||
|
Loading…
Reference in New Issue
Block a user