From 2e3332e3fe2b3c69e07012a9f63176c74eff3596 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 15 Dec 2017 00:11:47 +0900 Subject: [PATCH] Shortcut non-visible panels to avoid adding as drawables --- osu.Game/Screens/Select/BeatmapCarousel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Screens/Select/BeatmapCarousel.cs b/osu.Game/Screens/Select/BeatmapCarousel.cs index e51ce85546..1f2bee52a5 100644 --- a/osu.Game/Screens/Select/BeatmapCarousel.cs +++ b/osu.Game/Screens/Select/BeatmapCarousel.cs @@ -498,6 +498,8 @@ namespace osu.Game.Screens.Select // Only add if we're not already part of the content. if (!scrollableContent.Contains(item)) { + if (!item.Item.Visible) continue; + // Makes sure headers are always _below_ items, // and depth flows downward. item.Depth = i + (item is DrawableCarouselBeatmapSet ? Items.Count : 0);