summaryrefslogtreecommitdiff
path: root/lib/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/commands.py')
-rw-r--r--lib/commands.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/commands.py b/lib/commands.py
index db3c8a71..df82a8c4 100644
--- a/lib/commands.py
+++ b/lib/commands.py
@@ -24,6 +24,10 @@ COMMANDS = {
# L10N command attached to an object
N_("ignore_object"): N_("Ignore this object (do not stitch)"),
+ # L10N command attached to an object
+ N_("satin_cut_point"): N_("Satin cut point (use with Cut Satin Column)"),
+
+
# L10N command that affects a layer
N_("ignore_layer"): N_("Ignore layer (do not stitch any objects in this layer)"),
@@ -34,7 +38,7 @@ COMMANDS = {
N_("stop_position"): N_("Jump destination for Stop commands (a.k.a. \"Frame Out position\")."),
}
-OBJECT_COMMANDS = ["fill_start", "fill_end", "stop", "trim", "ignore_object"]
+OBJECT_COMMANDS = ["fill_start", "fill_end", "stop", "trim", "ignore_object", "satin_cut_point"]
LAYER_COMMANDS = ["ignore_layer"]
GLOBAL_COMMANDS = ["origin", "stop_position"]
@@ -101,6 +105,8 @@ class Command(BaseCommand):
if neighbors[0][0].tag != SVG_USE_TAG:
raise CommandParseError("connector does not point to a use tag")
+ self.use = neighbors[0][0]
+
self.symbol = self.get_node_by_url(neighbors[0][0].get(XLINK_HREF))
self.parse_symbol()