Small bug fix

This commit is contained in:
Chandler Cox
2023-09-03 12:11:33 -05:00
parent 924e1c6d81
commit 39ecfe8c24

View File

@@ -762,7 +762,11 @@ namespace FlaxEditor.GUI.Tree
// Add/Remove
tree.AddOrRemoveSelection(this);
}
else if (button != MouseButton.Right)
else if (button == MouseButton.Right && tree.Selection.Contains(this))
{
// Do nothing
}
else
{
// Select
tree.Select(this);