Fix range selection in Tree to skip invisible nodes

This commit is contained in:
Wojtek Figat
2021-07-16 10:02:56 +02:00
parent 8ae3c23ec8
commit 41a39d5088

View File

@@ -231,7 +231,7 @@ namespace FlaxEditor.GUI.Tree
{
for (int i = 0; i < node.ChildrenCount; i++)
{
if (node.GetChild(i) is TreeNode child)
if (node.GetChild(i) is TreeNode child && child.Visible)
{
Vector2 pos = child.PointToParent(this, Vector2.One);
if (range.Contains(pos))