Fix isSplittable depending on unreliable order of path control point pieces

This commit is contained in:
OliBomby 2024-10-09 23:31:12 +02:00
parent a6f56036a2
commit 9936ec579f
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ private bool splitSelected()
private bool isSplittable(PathControlPointPiece<T> p) =>
// A hit object can only be split on control points which connect two different path segments.
p.ControlPoint.Type.HasValue && p != Pieces.FirstOrDefault() && p != Pieces.LastOrDefault();
p.ControlPoint.Type.HasValue && p.ControlPoint != controlPoints.FirstOrDefault() && p.ControlPoint != controlPoints.LastOrDefault();
private void onControlPointsChanged(object sender, NotifyCollectionChangedEventArgs e)
{