mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 11:42:55 +08:00
Shortcut non-visible panels to avoid adding as drawables
This commit is contained in:
parent
48e53a76b0
commit
2e3332e3fe
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user