Merge pull request #30189 from OliBomby/fix-splittable

Fix split control point context menu option not showing up on newly created control points
This commit is contained in:
Bartłomiej Dach 2024-10-10 11:37:24 +02:00 committed by GitHub
commit cab97a96ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)
{