Merge branch 'remove-sorting-content-tree' of https://github.com/Tryibion/FlaxEngine into Tryibion-remove-sorting-content-tree
This commit is contained in:
@@ -837,13 +837,20 @@ namespace FlaxEditor.Windows
|
|||||||
};
|
};
|
||||||
_root.Expand(true);
|
_root.Expand(true);
|
||||||
|
|
||||||
|
// Add game project on top, plugins in the middle and engine at bottom
|
||||||
|
_root.AddChild(Editor.ContentDatabase.Game);
|
||||||
foreach (var project in Editor.ContentDatabase.Projects)
|
foreach (var project in Editor.ContentDatabase.Projects)
|
||||||
|
{
|
||||||
|
project.SortChildrenRecursive();
|
||||||
|
if (project == Editor.ContentDatabase.Game || project == Editor.ContentDatabase.Engine)
|
||||||
|
continue;
|
||||||
_root.AddChild(project);
|
_root.AddChild(project);
|
||||||
|
}
|
||||||
|
_root.AddChild(Editor.ContentDatabase.Engine);
|
||||||
|
|
||||||
Editor.ContentDatabase.Game?.Expand(true);
|
Editor.ContentDatabase.Game?.Expand(true);
|
||||||
_tree.Margin = new Margin(0.0f, 0.0f, -16.0f, 2.0f); // Hide root node
|
_tree.Margin = new Margin(0.0f, 0.0f, -16.0f, 2.0f); // Hide root node
|
||||||
_tree.AddChild(_root);
|
_tree.AddChild(_root);
|
||||||
_root.SortChildrenRecursive();
|
|
||||||
|
|
||||||
// Setup navigation
|
// Setup navigation
|
||||||
_navigationUnlocked = true;
|
_navigationUnlocked = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user