DOn't even start drag and drop if content item is detached from UI
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user