DOn't even start drag and drop if content item is detached from UI

This commit is contained in:
Wojtek Figat
2023-04-17 12:54:01 +02:00
parent 67da36a611
commit 414bce38bb

View File

@@ -222,7 +222,7 @@ namespace FlaxEditor.Content
/// <summary> /// <summary>
/// Gets a value indicating whether this item can be dragged and dropped. /// Gets a value indicating whether this item can be dragged and dropped.
/// </summary> /// </summary>
public virtual bool CanDrag => true; public virtual bool CanDrag => Root != null;
/// <summary> /// <summary>
/// Gets a value indicating whether this <see cref="ContentItem"/> exists on drive. /// Gets a value indicating whether this <see cref="ContentItem"/> exists on drive.