From bd0daf7580eabe972e0b285cbe7ef9accbbd9645 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Mon, 13 Oct 2025 21:49:05 -0500 Subject: [PATCH] Fix tree arrowing up not selecting children in tree. --- Source/Editor/GUI/Tree/Tree.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Editor/GUI/Tree/Tree.cs b/Source/Editor/GUI/Tree/Tree.cs index 5530a1738..3f60572f6 100644 --- a/Source/Editor/GUI/Tree/Tree.cs +++ b/Source/Editor/GUI/Tree/Tree.cs @@ -447,8 +447,8 @@ namespace FlaxEditor.GUI.Tree // Select previous parent child var select = nodeParent.GetChild(myIndex - 1) as TreeNode; - // Select last child if is valid and expanded and has any children - if (select != null && select.IsExpanded && select.HasAnyVisibleChild) + // Get bottom most child node + while (select != null && select.IsExpanded && select.HasAnyVisibleChild) { select = select.GetChild(select.ChildrenCount - 1) as TreeNode; }