mirror of https://github.com/ppy/osu
Remove skinnable parents at the same time as their smoke children
This commit is contained in:
parent
929eb8559e
commit
c1da3bc9cf
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue