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:
parent
3307e8357f
commit
690feb1c1e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user