From 95831915565a117f53ac38f3afb0b53ac919d04a Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Thu, 15 Feb 2018 19:08:03 +0900 Subject: [PATCH] Dispose SelectionBoxes when they die --- osu.Game/Rulesets/Edit/Layers/Selection/SelectionBox.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Rulesets/Edit/Layers/Selection/SelectionBox.cs b/osu.Game/Rulesets/Edit/Layers/Selection/SelectionBox.cs index e0e52a41bc..8eee15d0b2 100644 --- a/osu.Game/Rulesets/Edit/Layers/Selection/SelectionBox.cs +++ b/osu.Game/Rulesets/Edit/Layers/Selection/SelectionBox.cs @@ -52,6 +52,8 @@ namespace osu.Game.Rulesets.Edit.Layers.Selection Size = bottomRight - topLeft; } + public override bool DisposeOnDeathRemoval => true; + protected override void PopIn() => this.FadeIn(250, Easing.OutQuint); protected override void PopOut() => this.FadeOut(250, Easing.OutQuint); }