Fix cached DraggedOverNode to be properly reset after drag and #996
This commit is contained in:
@@ -922,7 +922,8 @@ namespace FlaxEditor.GUI.Tree
|
||||
if (result == DragDropEffect.None)
|
||||
{
|
||||
UpdateDrawPositioning(ref location);
|
||||
_tree.DraggedOverNode = this;
|
||||
if (ParentTree != null)
|
||||
ParentTree.DraggedOverNode = this;
|
||||
|
||||
// Check if mouse is over header
|
||||
_isDragOverHeader = TestHeaderHit(ref location);
|
||||
@@ -1000,6 +1001,8 @@ namespace FlaxEditor.GUI.Tree
|
||||
// Clear cache
|
||||
_isDragOverHeader = false;
|
||||
_dragOverMode = DragItemPositioning.None;
|
||||
if (ParentTree != null)
|
||||
ParentTree.DraggedOverNode = null;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user