From cff12ce18ff94a4d7b779b3c7063eb6b82afa526 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Tue, 9 Jul 2019 20:39:07 -0400 Subject: remove all empty color blocks --- lib/extensions/input.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/extensions/input.py') diff --git a/lib/extensions/input.py b/lib/extensions/input.py index 826e7e04..03148832 100644 --- a/lib/extensions/input.py +++ b/lib/extensions/input.py @@ -1,11 +1,12 @@ import os +import pyembroidery + from inkex import etree import inkex -import pyembroidery +from ..stitch_plan import StitchPlan from ..svg import PIXELS_PER_MM, render_stitch_plan from ..svg.tags import INKSCAPE_LABEL -from ..stitch_plan import StitchPlan class Input(object): @@ -29,7 +30,7 @@ class Input(object): if len(color_block) > 0 and command == pyembroidery.TRIM: trim_after = True - stitch_plan.delete_empty_color_block(color_block) + stitch_plan.delete_empty_color_blocks() extents = stitch_plan.extents svg = etree.Element("svg", nsmap=inkex.NSS, attrib={ -- cgit v1.2.3