Skip to content

Commit

Permalink
Merge pull request #30189 from OliBomby/fix-splittable
Browse files Browse the repository at this point in the history
Fix split control point context menu option not showing up on newly created control points
  • Loading branch information
bdach authored Oct 10, 2024
2 parents a6f5603 + 9936ec5 commit cab97a9
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 cab97a9

Please sign in to comment.