Skip to content

Commit

Permalink
Fix isSplittable depending on unreliable order of path control point …
Browse files Browse the repository at this point in the history
…pieces
  • Loading branch information
OliBomby committed Oct 9, 2024
1 parent a6f5603 commit 9936ec5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 9936ec5

Please sign in to comment.