From 909aa4740d8693cb3490ce8c19c8d78afac4229c Mon Sep 17 00:00:00 2001 From: John Lewin Date: Mon, 19 Jun 2017 22:19:45 -0700 Subject: [PATCH] Fix regression in drag/drop to View3DWidget --- PartPreviewWindow/View3D/View3DWidget.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PartPreviewWindow/View3D/View3DWidget.cs b/PartPreviewWindow/View3D/View3DWidget.cs index ab1f8a116..88156f488 100644 --- a/PartPreviewWindow/View3D/View3DWidget.cs +++ b/PartPreviewWindow/View3D/View3DWidget.cs @@ -1665,7 +1665,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow // Indicates if MatterControl is in a mode that allows DragDrop private bool AllowDragDrop() { - return printItemWrapper?.PrintItem.ReadOnly != false; + // Allow drop if printItem is not null and not ReadOnly + return !printItemWrapper?.PrintItem.ReadOnly ?? false; } private void AutoSpin()