Clean up a bit code after moving it around.

This commit is contained in:
Zode
2025-06-08 00:41:02 +03:00
committed by GitHub
parent 1fa83639c2
commit ecd5559aad

View File

@@ -93,12 +93,13 @@ namespace FlaxEditor.Windows
_tree.RightClick += OnTreeRightClick;
_tree.Parent = _sceneTreePanel;
_tree.OnDeferedLayout += () => {
if(_tree.Selection.Count != 0 && _forceScrollNodeToView)
if(_forceScrollNodeToView)
{
_forceScrollNodeToView = false;
ScrollToSelectedNode();
}
};
headerPanel.Parent = this;
// Setup input actions