From 23ac0a4f7fb6d7c47728d42a03085a732cb75a10 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 2 Jul 2019 18:38:48 +0200 Subject: Ignore commands on input files --- lib/extensions/input.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/extensions/input.py') diff --git a/lib/extensions/input.py b/lib/extensions/input.py index 0ca85df5..fbc37bd7 100644 --- a/lib/extensions/input.py +++ b/lib/extensions/input.py @@ -19,9 +19,9 @@ class Input(object): for raw_stitches, thread in pattern.get_as_colorblocks(): color_block = stitch_plan.new_color_block(thread) for x, y, command in raw_stitches: - color_block.add_stitch(x * PIXELS_PER_MM / 10.0, y * PIXELS_PER_MM / 10.0, - jump=(command == pyembroidery.JUMP), - trim=(command == pyembroidery.TRIM)) + # let's ignore commands for now + if command == pyembroidery.STITCH: + color_block.add_stitch(x * PIXELS_PER_MM / 10.0, y * PIXELS_PER_MM / 10.0) extents = stitch_plan.extents svg = etree.Element("svg", nsmap=inkex.NSS, attrib={ -- cgit v1.2.3