Made it so the visuals of dragging an actor will only show between the nodes and on the node.

This commit is contained in:
Chandler Cox
2023-04-14 12:55:40 -05:00
parent 4bdeb26e74
commit d813078e91
3 changed files with 11 additions and 3 deletions

View File

@@ -706,6 +706,8 @@ namespace FlaxEditor.SceneGraph.GUI
{
DragData data;
var tree = ParentTree;
if (tree.Selection.Count == 1)
Select();
// Check if this node is selected
if (tree.Selection.Contains(this))