mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 17:57:29 +08:00
Fix isSplittable depending on unreliable order of path control point pieces
This commit is contained in:
parent
a6f56036a2
commit
9936ec579f
@ -178,7 +178,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
|
|||||||
|
|
||||||
private bool isSplittable(PathControlPointPiece<T> p) =>
|
private bool isSplittable(PathControlPointPiece<T> p) =>
|
||||||
// A hit object can only be split on control points which connect two different path segments.
|
// 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)
|
private void onControlPointsChanged(object sender, NotifyCollectionChangedEventArgs e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user