Skip to content

Commit fb31884

Browse files
committed
x, y, ix, and iy for layer_start, line_start, line_end, layer_end
1 parent 414e78b commit fb31884

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

vpype_gcode/gwrite.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
123123
if layer_start is not None:
124124
output.write(
125125
layer_start.format(
126+
x=last_x,
127+
y=last_y,
128+
ix=xx,
129+
iy=yy,
126130
index=layer_index,
127131
index1=layer_index + 1,
128132
layer_index=layer_index,
@@ -136,6 +140,10 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
136140
if line_start is not None:
137141
output.write(
138142
line_start.format(
143+
x=last_x,
144+
y=last_y,
145+
ix=xx,
146+
iy=yy,
139147
index=lines_index,
140148
index1=lines_index + 1,
141149
lines_index=lines_index,
@@ -194,6 +202,10 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
194202
if line_end is not None:
195203
output.write(
196204
line_end.format(
205+
x=last_x,
206+
y=last_y,
207+
ix=xx,
208+
iy=yy,
197209
index=lines_index,
198210
index1=lines_index + 1,
199211
lines_index=lines_index,
@@ -209,6 +221,10 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
209221
if layer_end is not None:
210222
output.write(
211223
layer_end.format(
224+
x=last_x,
225+
y=last_y,
226+
ix=xx,
227+
iy=yy,
212228
index=layer_index,
213229
index1=layer_index + 1,
214230
layer_index=layer_index,

0 commit comments

Comments
 (0)