Undo subpath limiting

This commit is contained in:
Naxess 2021-03-22 15:54:33 +01:00
parent fcd1f4930f
commit bee2f55d00

View File

@ -219,10 +219,8 @@ namespace osu.Game.Rulesets.Objects
List<Vector2> subpath = PathApproximator.ApproximateCircularArc(subControlPoints);
// If for some reason a circular arc could not be fit to the 3 given points, or the
// resulting radius is too large (e.g. points arranged almost linearly), fall back
// to a numerically stable bezier approximation.
if (subpath.Count == 0 || subpath.Count > 400)
// If for some reason a circular arc could not be fit to the 3 given points, fall back to a numerically stable bezier approximation.
if (subpath.Count == 0)
break;
return subpath;