summaryrefslogtreecommitdiff
path: root/embroider.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-02-26 19:42:18 -0500
committerGitHub <noreply@github.com>2018-02-26 19:42:18 -0500
commit4e7520c013d8b7c9f5333c2759bef4878784f42d (patch)
tree97aa3c8bb70ee824466db3550fd086c0983106b8 /embroider.py
parente958a7f82c60a07b1b85704f99554ff24d582bce (diff)
user can specify origin for embroidery output by setting up guides (#52)
* user can specify origin using guides * embroidery origin defaults to center of canvas
Diffstat (limited to 'embroider.py')
-rw-r--r--embroider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/embroider.py b/embroider.py
index e0c489e4..265cbe0f 100644
--- a/embroider.py
+++ b/embroider.py
@@ -1763,7 +1763,7 @@ class Embroider(inkex.Effect):
patches = elements_to_patches(self.elements)
stitches = patches_to_stitches(patches, self.options.collapse_length_mm * PIXELS_PER_MM)
- inkstitch.write_embroidery_file(self.get_output_path(), stitches)
+ inkstitch.write_embroidery_file(self.get_output_path(), stitches, self.document.getroot())
new_layer = inkex.etree.SubElement(self.document.getroot(), SVG_GROUP_TAG, {})
new_layer.set('id', self.uniqueId("embroidery"))