mirror of
https://github.com/ppy/osu
synced 2025-01-20 13:00:54 +00:00
Reloading samples before playing then when skin change occurs
This commit is contained in:
parent
1d5e596615
commit
390ad335d0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user