Optimize UI in Editor

This commit is contained in:
Wojtek Figat
2021-11-27 13:07:09 +01:00
parent a9c56caf84
commit 74f813ed3e
11 changed files with 204 additions and 165 deletions

View File

@@ -486,7 +486,6 @@ namespace FlaxEditor.Modules
var node = SceneGraphFactory.BuildActorNode(actor);
if (node != null)
{
node.TreeNode.UnlockChildrenRecursive();
node.ParentNode = parentNode;
}
}
@@ -544,13 +543,8 @@ namespace FlaxEditor.Modules
return;
// Get the new parent node (may be missing)
if (parentNode != null)
{
// Change parent
node.TreeNode.UnlockChildrenRecursive();
node.ParentNode = parentNode;
}
else
node.ParentNode = parentNode;
if (parentNode == null)
{
// Check if actor is selected in editor
if (Editor.SceneEditing.Selection.Contains(node))