Fix error on drag&drop in Editor

This commit is contained in:
2026-06-17 10:30:07 +02:00
parent 77476095ba
commit 3ccc167707
@@ -1016,11 +1016,11 @@ namespace FlaxEditor.CustomEditors.Editors
var result = base.OnDragDrop(ref location, data);
if (result != DragDropEffect.None)
{
_dragHandlers.OnDragDrop(null);
_dragHandlers?.OnDragDrop(null);
return result;
}
if (_dragHandlers.HasValidDrag)
if (_dragHandlers != null && _dragHandlers.HasValidDrag)
{
if (_dragItems.HasValidDrag)
{