Merge pull request #2190 from jlewin/design_tools

Fix regression in drag/drop to View3DWidget
This commit is contained in:
johnlewin 2017-06-19 22:26:12 -07:00 committed by GitHub
commit be0d66ca4d

View file

@ -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()