Prevent bed validation for GCode files
- Issue MatterHackers/MatterControl#4611 Empty bed will not print
This commit is contained in:
parent
21afe4e86d
commit
3f080cb6b2
5 changed files with 8 additions and 6 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue