1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Allow looping storyboard samples to follow the base samplePlaybackDisabled event logic.

This commit is contained in:
Mysfit 2021-01-26 23:08:51 -05:00
parent 3307e8357f
commit 690feb1c1e

View File

@ -46,8 +46,15 @@ namespace osu.Game.Storyboards.Drawables
{
if (!RequestedPlaying) return;
if (disabled.NewValue)
Stop();
// non-looping storyboard samples should be stopped immediately when sample playback is disabled
if (!Looping)
{
if (disabled.NewValue)
Stop();
}
else
base.SamplePlaybackDisabledChanged(disabled);
}
protected override void Update()