summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2019-07-02 18:38:48 +0200
committerLex Neva <github.com@lexneva.name>2019-07-04 10:52:30 -0400
commit23ac0a4f7fb6d7c47728d42a03085a732cb75a10 (patch)
tree3c7880058a3ad6621f88a0a77ca3711de18bd7f4
parent32548e8e51d13d511813ba4e2a4571bd73e440e5 (diff)
Ignore commands on input files
-rw-r--r--lib/extensions/input.py6
1 files changed, 3 insertions, 3 deletions
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={