Prevent bed validation for GCode files

- Issue MatterHackers/MatterControl#4611
Empty bed will not print
This commit is contained in:
jlewin 2019-06-14 14:13:23 -07:00
parent 21afe4e86d
commit 3f080cb6b2
5 changed files with 8 additions and 6 deletions

View file

@ -2597,10 +2597,10 @@ namespace MatterHackers.MatterControl
printer.Connection.PrintingItemName = printItemName;
var errors = printer.ValidateSettings();
var errors = printer.ValidateSettings(validatePrintBed: !printer.Bed.EditContext.IsGGCodeSource);
if (errors.Any(e => e.ErrorLevel == ValidationErrorLevel.Error))
{
this.ShowValidationErrors("Export Error".Localize(), errors);
this.ShowValidationErrors("Validation Error".Localize(), errors);
}
else // there are no errors continue printing
{