fix GetVisibleItems() to only get visible items

This commit is contained in:
xxSeys1
2025-06-16 14:51:29 +02:00
parent cd7233d559
commit d110237423

View File

@@ -522,7 +522,7 @@ namespace FlaxEditor.GUI
for (int i = 0; i < _categoryPanels.Count; i++)
{
var category = _categoryPanels[i];
if (!category.Visible)
if (!category.Visible || (category is DropPanel panel && panel.IsClosed))
continue;
for (int j = 0; j < category.Children.Count; j++)
{