Fixes for regression in tree UI layout after recent refactor

This commit is contained in:
Wojciech Figat
2021-12-07 14:58:54 +01:00
parent ea71e8cbe6
commit 1cc26c871d
5 changed files with 76 additions and 72 deletions

View File

@@ -412,11 +412,8 @@ namespace FlaxEditor.Modules
// Add to the tree
var rootNode = Root.TreeNode;
rootNode.IsLayoutLocked = true;
//
sceneNode.ParentNode = Root;
rootNode.SortChildren();
//
treeNode.UnlockChildrenRecursive();
rootNode.IsLayoutLocked = false;
rootNode.Parent.PerformLayout();