mirror of
https://github.com/ppy/osu.git
synced 2026-06-05 19:44:44 +08:00
Move transform clean-up to pooling free call
This commit is contained in:
@@ -595,8 +595,6 @@ namespace osu.Game.Screens.Select
|
||||
panel.Y = item.CarouselYPosition;
|
||||
panel.Depth = i;
|
||||
|
||||
panel.ClearTransforms();
|
||||
|
||||
scrollableContent.Add(panel);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -54,7 +54,9 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
protected override void FreeAfterUse()
|
||||
{
|
||||
base.FreeAfterUse();
|
||||
|
||||
Item = null;
|
||||
ClearTransforms();
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader(true)]
|
||||
|
||||
Reference in New Issue
Block a user