mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:52:55 +08:00
Use begin/end placement methods
This commit is contained in:
parent
a491fb42df
commit
8fa783b4c5
@ -113,6 +113,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks
|
|||||||
|
|
||||||
private void beginCurve()
|
private void beginCurve()
|
||||||
{
|
{
|
||||||
|
BeginPlacement();
|
||||||
|
|
||||||
HitObject.StartTime = EditorClock.CurrentTime;
|
HitObject.StartTime = EditorClock.CurrentTime;
|
||||||
setState(PlacementState.Body);
|
setState(PlacementState.Body);
|
||||||
}
|
}
|
||||||
@ -124,7 +126,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Masks
|
|||||||
HitObject.CurveType = HitObject.ControlPoints.Count > 2 ? CurveType.Bezier : CurveType.Linear;
|
HitObject.CurveType = HitObject.ControlPoints.Count > 2 ? CurveType.Bezier : CurveType.Linear;
|
||||||
HitObject.Distance = segments.Sum(s => s.Distance);
|
HitObject.Distance = segments.Sum(s => s.Distance);
|
||||||
|
|
||||||
Finish();
|
EndPlacement();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
|
Loading…
Reference in New Issue
Block a user