summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/extensions/base.py3
-rw-r--r--lib/extensions/commands.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/extensions/base.py b/lib/extensions/base.py
index d230f1b0..5e5adccd 100644
--- a/lib/extensions/base.py
+++ b/lib/extensions/base.py
@@ -114,6 +114,9 @@ class InkstitchExtension(inkex.Effect):
nodes = []
element = EmbroideryElement(node)
+ if element.has_command('ignore'):
+ return []
+
if element.has_style('display') and element.get_style('display') is None:
return []
diff --git a/lib/extensions/commands.py b/lib/extensions/commands.py
index 2f3006ff..b22b5d84 100644
--- a/lib/extensions/commands.py
+++ b/lib/extensions/commands.py
@@ -16,7 +16,7 @@ from ..svg import get_node_transform
class Commands(InkstitchExtension):
- COMMANDS = ["fill_start", "fill_end", "stop", "trim"]
+ COMMANDS = ["fill_start", "fill_end", "stop", "trim", "ignore"]
def __init__(self, *args, **kwargs):
InkstitchExtension.__init__(self, *args, **kwargs)