mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
truncate hit object end time
This commit is contained in:
parent
1d837a8725
commit
c02684d985
@ -60,6 +60,9 @@ namespace osu.Game.Database
|
|||||||
{
|
{
|
||||||
hitObject.StartTime = Math.Floor(hitObject.StartTime);
|
hitObject.StartTime = Math.Floor(hitObject.StartTime);
|
||||||
|
|
||||||
|
if (hitObject is IHasDuration hasDuration && hitObject is not IHasPath)
|
||||||
|
hasDuration.Duration = Math.Floor(hasDuration.Duration);
|
||||||
|
|
||||||
if (hitObject is not IHasPath hasPath || BezierConverter.CountSegments(hasPath.Path.ControlPoints) <= 1) continue;
|
if (hitObject is not IHasPath hasPath || BezierConverter.CountSegments(hasPath.Path.ControlPoints) <= 1) continue;
|
||||||
|
|
||||||
var newControlPoints = BezierConverter.ConvertToModernBezier(hasPath.Path.ControlPoints);
|
var newControlPoints = BezierConverter.ConvertToModernBezier(hasPath.Path.ControlPoints);
|
||||||
|
Loading…
Reference in New Issue
Block a user