Remove skinnable parents at the same time as their smoke children

This commit is contained in:
Alden Wu 2022-10-03 16:03:37 -07:00
parent 929eb8559e
commit c1da3bc9cf
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@
using osu.Framework.Input;
using osu.Framework.Input.Bindings;
using osu.Framework.Input.Events;
using osu.Game.Rulesets.Osu.Skinning;
using osu.Game.Rulesets.Osu.Skinning.Default;
using osu.Game.Skinning;
using osuTK;
@ -44,6 +45,9 @@ public void OnReleased(KeyBindingReleaseEvent<OsuAction> e)
{
isSmoking = false;
SmokeEnded?.Invoke(Time.Current);
foreach (SkinnableDrawable skinnable in Children)
skinnable.LifetimeEnd = skinnable.Drawable.LifetimeEnd;
}
}