From 414bce38bba27021dd8a7b3e0e42c8b4e3de4914 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 17 Apr 2023 12:54:01 +0200 Subject: [PATCH] DOn't even start drag and drop if content item is detached from UI --- Source/Editor/Content/Items/ContentItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Content/Items/ContentItem.cs b/Source/Editor/Content/Items/ContentItem.cs index fb930d192..284f3f1b3 100644 --- a/Source/Editor/Content/Items/ContentItem.cs +++ b/Source/Editor/Content/Items/ContentItem.cs @@ -222,7 +222,7 @@ namespace FlaxEditor.Content /// /// Gets a value indicating whether this item can be dragged and dropped. /// - public virtual bool CanDrag => true; + public virtual bool CanDrag => Root != null; /// /// Gets a value indicating whether this exists on drive.