Fix error on scene tree drag&drop handling change

This commit is contained in:
Wojciech Figat
2021-12-09 17:07:39 +01:00
parent 822d8c947e
commit 4f127761a0

View File

@@ -443,7 +443,7 @@ namespace FlaxEditor.Windows
public override DragDropEffect OnDragMove(ref Vector2 location, DragData data)
{
var result = base.OnDragMove(ref location, data);
if (result == DragDropEffect.None && Editor.StateMachine.CurrentState.CanEditScene)
if (result == DragDropEffect.None && Editor.StateMachine.CurrentState.CanEditScene && _dragHandlers != null)
{
result = _dragHandlers.Effect;
}