Fix missing Visject CM groups auto-expanding if enabled

This commit is contained in:
Wojtek Figat
2023-08-03 16:29:07 +02:00
parent c0d32a99b0
commit cab1d8cac4

View File

@@ -283,6 +283,8 @@ namespace FlaxEditor.Surface.ContextMenu
{
group.UnlockChildrenRecursive();
SortGroups();
if (ShowExpanded)
group.Open(false);
group.PerformLayout();
if (_searchBox.TextLength != 0)
{
@@ -323,6 +325,8 @@ namespace FlaxEditor.Surface.ContextMenu
};
}
group.SortChildren();
if (ShowExpanded)
group.Open(false);
group.Parent = _groupsPanel;
_groups.Add(group);