Skip to content

Commit 9b383ce

Browse files
author
Sven Erb
committed
Updated usage of LineSequenceParaAdapt
1 parent ef96291 commit 9b383ce

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • ReaderWriter/3rdPartyFormatAdapters/GCODE/GCodeReaderWriter

ReaderWriter/3rdPartyFormatAdapters/GCODE/GCodeReaderWriter/GCodeReader.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,16 @@ void UpdateLineSequence(LinearInterpolationCmd linearCmd)
291291
// Update speed first to check if marking params changed and new vector block is needed
292292
UpdateSpeed(linearCmd.isOperation, linearCmd.feedRate);
293293

294-
if (_currentVB.LineSequence == null)
294+
if (_currentVB.LineSequenceParaAdapt == null)
295295
{
296-
_currentVB.LineSequence = new VectorBlock.Types.LineSequence();
296+
_currentVB.LineSequenceParaAdapt = new VectorBlock.Types.LineSequenceParaAdapt
297+
{
298+
};
297299
}
298-
_currentVB.LineSequence.Points.Add(absolutePositioning
300+
_currentVB.LineSequenceParaAdapt.PointsWithParas.Add(absolutePositioning
299301
? (linearCmd.xPosition ?? position.X) // Use absolute x-positioning
300302
: (position.X + (linearCmd.xPosition ?? 0))); // Use relative xpositioning
301-
_currentVB.LineSequence.Points.Add(absolutePositioning
303+
_currentVB.LineSequenceParaAdapt.PointsWithParas.Add(absolutePositioning
302304
? (linearCmd.yPosition ?? position.Y) // Use absolute y-positioning
303305
: (position.Y + (linearCmd.yPosition ?? 0))); // Use relative y-positioning
304306
}

0 commit comments

Comments
 (0)