mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 09:22:58 +08:00
Fix autogenerated breaks not invalidating on change to pre-empt time
This commit is contained in:
parent
c2fa30bf81
commit
c3062f96ee
@ -45,7 +45,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
|
|
||||||
private void autoGenerateBreaks()
|
private void autoGenerateBreaks()
|
||||||
{
|
{
|
||||||
var objectDuration = Beatmap.HitObjects.Select(ho => (ho.StartTime, ho.GetEndTime())).ToHashSet();
|
var objectDuration = Beatmap.HitObjects.Select(ho => (ho.StartTime - ((ho as IHasTimePreempt)?.TimePreempt ?? 0), ho.GetEndTime())).ToHashSet();
|
||||||
|
|
||||||
if (objectDuration.SetEquals(objectDurationCache))
|
if (objectDuration.SetEquals(objectDurationCache))
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user