Skip to content

Commit 1e4c461

Browse files
committed
Restore invert_x invert_y config properties
1 parent f5225c4 commit 1e4c461

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

vpype_gcode/gwrite.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ def gwrite(document: vp.Document, output: typing.TextIO, profile: str):
105105
document.scale(scale_x / unit_scale, scale_y / unit_scale)
106106
document.translate(offset_x, offset_y)
107107

108+
invert_x = config.get("invert_x", False)
109+
invert_y = config.get("invert_y", False)
110+
# transform the document according to inversion parameters
111+
if invert_x or invert_y:
112+
document = invert_axis(document, invert_x, invert_y)
113+
108114
# process file
109115
filename = output.name
110116
if document_start is not None:

0 commit comments

Comments
 (0)