Moved extruder offsets from passing to MS to being part of stream processing

Made '; NO_PROCESSING' track printer position correctly
issue: MatterHackers/MCCentral#4658
Create setting for ZOffset for extruder 2
This commit is contained in:
Lars Brubaker 2018-12-04 13:28:38 -08:00
parent 8b6ea26d35
commit 1a434b6388
17 changed files with 68 additions and 205 deletions

View file

@ -251,13 +251,17 @@ namespace MatterHackers.MatterControl.Library.Export
var queueStream = new QueuedCommandsStream(printer, gCodeFileStream);
GCodeStream accumulatedStream = queueStream;
if(printer.Settings.GetValue<bool>(SettingsKey.print_leveling_enabled) && this.ApplyLeveling)
if (printer.Settings.GetValue<bool>(SettingsKey.enable_line_splitting))
{
if (printer.Settings.GetValue<bool>(SettingsKey.enable_line_splitting))
{
accumulatedStream = new BabyStepsStream(printer, accumulatedStream, 1);
}
accumulatedStream = new BabyStepsStream(printer, accumulatedStream, 1);
}
else
{
accumulatedStream = new BabyStepsStream(printer, accumulatedStream, 1000);
}
if (printer.Settings.GetValue<bool>(SettingsKey.print_leveling_enabled) && this.ApplyLeveling)
{
accumulatedStream = new PrintLevelingStream(printer, accumulatedStream, false);
}