1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Simplify path type maintenance when dragging

This commit is contained in:
Naxess 2021-03-24 02:57:47 +01:00
parent 5ee280f941
commit 0bcd38e661

View File

@ -195,8 +195,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
ControlPoint.Position.Value = dragStartPosition + (e.MousePosition - e.MouseDownPosition);
// Maintain the path type in case it got defaulted to bezier at some point during the drag.
if (PointsInSegment[0].Type.Value != dragPathType)
PointsInSegment[0].Type.Value = dragPathType;
PointsInSegment[0].Type.Value = dragPathType;
}
protected override void OnDragEnd(DragEndEvent e) => changeHandler?.EndChange();