mirror of https://github.com/ppy/osu
Fix isSplittable depending on unreliable order of path control point pieces
This commit is contained in:
parent
a6f56036a2
commit
9936ec579f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue