mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
fix infinite repeat count when adjusting length of 0 length slider
This commit is contained in:
parent
5c066c40b1
commit
1dc34ee25d
@ -414,7 +414,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
double lengthOfOneRepeat = repeatHitObject.Duration / (repeatHitObject.RepeatCount + 1);
|
||||
int proposedCount = Math.Max(0, (int)Math.Round(proposedDuration / lengthOfOneRepeat) - 1);
|
||||
|
||||
if (proposedCount == repeatHitObject.RepeatCount)
|
||||
if (proposedCount == repeatHitObject.RepeatCount || lengthOfOneRepeat == 0)
|
||||
return;
|
||||
|
||||
repeatHitObject.RepeatCount = proposedCount;
|
||||
|
Loading…
Reference in New Issue
Block a user