From 6397c7b70fd2dd24c80819707ec02a055d1dc83d Mon Sep 17 00:00:00 2001 From: John Lewin Date: Thu, 12 Nov 2015 17:03:15 -0800 Subject: [PATCH] Pause on layer --- MatterControlApplication.cs | 12 ++++++++++++ Submodules/agg-sharp | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/MatterControlApplication.cs b/MatterControlApplication.cs index 59054105f..856158ed6 100644 --- a/MatterControlApplication.cs +++ b/MatterControlApplication.cs @@ -50,6 +50,7 @@ using System.IO; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; +using MatterHackers.GCodeVisualizer; namespace MatterHackers.MatterControl { @@ -126,6 +127,8 @@ namespace MatterHackers.MatterControl bool forceSofwareRendering = false; + GCodeFileLoaded.PauseOnLayerProcessor = PauseOnLayer; + for (int currentCommandIndex = 0; currentCommandIndex < commandLineArgs.Length; currentCommandIndex++) { string command = commandLineArgs[currentCommandIndex]; @@ -752,5 +755,14 @@ namespace MatterHackers.MatterControl MatterHackers.MeshVisualizer.MeshViewerWidget.AssertDebugNotDefined(); MatterHackers.RenderOpenGl.GLMeshTrianglePlugin.AssertDebugNotDefined(); } + + private bool PauseOnLayer(string layer) + { + if (layer == "2") + { + return true; + } + return false; + } } } \ No newline at end of file diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 685115254..0e0d6372f 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 685115254a7d274734dd82291d1f8bca3a27e182 +Subproject commit 0e0d6372f0c9ecfd59094ca24716b13996e28625