summaryrefslogtreecommitdiff
path: root/lib/elements/element.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-06-30 14:18:45 -0400
committerLex Neva <github.com@lexneva.name>2018-07-12 20:13:34 -0400
commit3893d13b52b2755ea134ec4d3a215ee807dbbc2e (patch)
tree4dd9c4947dac85472b0c0fe7895a57b84936e4d8 /lib/elements/element.py
parent61983b615b202bb95c21d7a5021af3373615e839 (diff)
add support for trim/stop commands
Diffstat (limited to 'lib/elements/element.py')
-rw-r--r--lib/elements/element.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py
index f0b7ea6f..1c67d123 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -268,8 +268,8 @@ class EmbroideryElement(object):
patches = self.to_patches(last_patch)
if patches:
- patches[-1].trim_after = self.trim_after
- patches[-1].stop_after = self.stop_after
+ patches[-1].trim_after = self.has_command("trim") or self.trim_after
+ patches[-1].stop_after = self.has_command("stop") or self.stop_after
return patches