make sure we don't crash if generate is pushed when no model loaded.
This commit is contained in:
parent
d6ff6acd41
commit
0dcf31bdcd
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
void DoGenerateButton_Click(object state)
|
||||
{
|
||||
if (ActiveSliceSettings.Instance.IsValid())
|
||||
if (ActiveSliceSettings.Instance.IsValid() && printItem != null)
|
||||
{
|
||||
((Button)state).Visible = false;
|
||||
SlicingQueue.Instance.QueuePartForSlicing(printItem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue