mirror of
https://github.com/ppy/osu
synced 2025-01-04 13:22:08 +00: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