mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 17:07:50 +08:00
dont contract samples for stacked objects
This commit is contained in:
parent
f137fed04e
commit
22aef90cb7
@ -144,7 +144,13 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
if (hitObject is IHasRepeats hasRepeats)
|
if (hitObject is IHasRepeats hasRepeats)
|
||||||
smallestTimeGap = Math.Min(smallestTimeGap, hasRepeats.Duration / hasRepeats.SpanCount() / 2);
|
smallestTimeGap = Math.Min(smallestTimeGap, hasRepeats.Duration / hasRepeats.SpanCount() / 2);
|
||||||
|
|
||||||
smallestTimeGap = Math.Min(smallestTimeGap, lastTime - hitObject.GetEndTime());
|
double gap = lastTime - hitObject.GetEndTime();
|
||||||
|
|
||||||
|
// If the gap is less than 1ms, we can assume that the objects are stacked on top of each other
|
||||||
|
// Contracting doesn't make sense in this case
|
||||||
|
if (gap > 1 && gap < smallestTimeGap)
|
||||||
|
smallestTimeGap = gap;
|
||||||
|
|
||||||
lastTime = hitObject.StartTime;
|
lastTime = hitObject.StartTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user