From f322a5106e361c2e9d80a1c254383e905bdba0a9 Mon Sep 17 00:00:00 2001 From: Lars Brubaker Date: Fri, 7 Dec 2018 16:50:22 -0800 Subject: [PATCH] Make sure we track positions correctly over relative moves issue: MatterHackers/MCCentral#4675 Massive extrudes ramping up to z-max issue: MatterHackers/MCCentral#4674 Over retract on last layer --- MatterControlLib/Library/Export/GCodeExport.cs | 2 ++ Submodules/agg-sharp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MatterControlLib/Library/Export/GCodeExport.cs b/MatterControlLib/Library/Export/GCodeExport.cs index d043edc0e..1135e009a 100644 --- a/MatterControlLib/Library/Export/GCodeExport.cs +++ b/MatterControlLib/Library/Export/GCodeExport.cs @@ -258,6 +258,8 @@ namespace MatterHackers.MatterControl.Library.Export var queueStream = new QueuedCommandsStream(printer, gCodeFileStream); GCodeStream accumulatedStream = queueStream; + accumulatedStream = new RelativeToAbsoluteStream(printer, accumulatedStream); + if (printer.Settings.GetValue(SettingsKey.enable_line_splitting)) { accumulatedStream = new BabyStepsStream(printer, accumulatedStream, 1); diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 376efef48..bc5be6f9f 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 376efef4839d1b58a361aecfd00ae94471ff31a7 +Subproject commit bc5be6f9f3429eebd025d7cec9cf01cb6a2cf519