Skip to content

Commit 3d31d6e

Browse files
author
Sven
committed
Assigned changes in workingPlane, markingParams and vectorBlocks to variables.
1 parent ac38934 commit 3d31d6e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

GCodeReaderWriter/GCodeReader.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,14 @@ private void ParseGCodeFile()
189189
GCodeState gCodeState = new GCodeState(commandLines[0]);
190190
foreach (string commandLine in commandLines.Skip(1))
191191
{
192+
bool[] objectUpdates = gCodeState.Update(commandLine);
193+
bool workingPlaneChanged = objectUpdates[0], markingParamsChanged = objectUpdates[1], vectorBlockChanged = objectUpdates[2];
192194
if (gCodeState.Update(commandLine))
193195
{
194196
switch (gCodeState.gCodeCommand)
195197
{
196198
case LinearInterpolationCmd linearCmd:
199+
_currentVectorBlock.Vector
197200
break;
198201

199202
case CircularInterpolationCmd circularCmd:

0 commit comments

Comments
 (0)