Fixes for regression in tree UI layout after recent refactor

This commit is contained in:
2021-12-07 18:23:02 +01:00
parent ea71e8cbe6
commit 1cc26c871d
5 changed files with 76 additions and 72 deletions
-3
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();