Pause on layer

This commit is contained in:
John Lewin 2015-11-12 17:03:15 -08:00 committed by Gregory Diaz
parent 5c1b5d6f42
commit 6397c7b70f
2 changed files with 13 additions and 1 deletions

View file

@ -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;
}
}
}

@ -1 +1 @@
Subproject commit 685115254a7d274734dd82291d1f8bca3a27e182
Subproject commit 0e0d6372f0c9ecfd59094ca24716b13996e28625