Add SwitchExtruderStream to GCode export

This commit is contained in:
jlewin 2019-02-19 15:36:30 -08:00
parent a10e7f5413
commit ef94c9e7f6

View file

@ -287,6 +287,11 @@ namespace MatterHackers.MatterControl.Library.Export
var queueStream = new QueuedCommandsStream(printer, gCodeBaseStream);
GCodeStream accumulatedStream = queueStream;
if (printer.Settings.GetValue<int>(SettingsKey.extruder_count) > 1)
{
accumulatedStream = new SwitchExtruderStream(printer, accumulatedStream);
}
accumulatedStream = new RelativeToAbsoluteStream(printer, accumulatedStream);
bool levelingEnabled = printer.Settings.GetValue<bool>(SettingsKey.print_leveling_enabled) && applyLeveling;