Reloading samples before playing then when skin change occurs

This commit is contained in:
Terochi 2023-03-14 21:35:52 +01:00
parent 1d5e596615
commit 390ad335d0

View File

@ -115,6 +115,10 @@ namespace osu.Game.Skinning
/// </summary>
public virtual void Play()
{
if (Scheduler.HasPendingTasks)
// update samples queued due to skin change before playing them
UpdateSubTree();
samplesContainer.ForEach(c =>
{
if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0)