Making matter slice and cure layer changes both be detected.

This commit is contained in:
Lars Brubaker 2016-07-15 18:06:51 -07:00
parent c584814e56
commit 040da9da1e
4 changed files with 5 additions and 4 deletions

View file

@ -70,7 +70,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
string processedLine = offsetStream.ReadLine();
if (processedLine != null
&& layerCount < 1
&& processedLine.StartsWith("; LAYER:"))
&& GCodeFile.IsLayerChange(processedLine))
{
layerCount++;
if (layerCount == 1)