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:
parent
5ee280f941
commit
0bcd38e661
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user