1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 16:02:55 +08:00

Fix looping not being propagated

This commit is contained in:
smoogipoo 2020-11-19 20:29:09 +09:00
parent 8920534a25
commit 812d5d59b1

View File

@ -115,7 +115,12 @@ namespace osu.Game.Skinning
SamplesContainer.Clear();
foreach (var s in samples)
SamplesContainer.Add(pooledProvider?.GetPooledSample(s) ?? new PoolableSkinnableSample(s));
{
var sample = pooledProvider?.GetPooledSample(s) ?? new PoolableSkinnableSample(s);
sample.Looping = Looping;
SamplesContainer.Add(sample);
}
if (wasPlaying)
Play();