diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-04-23 23:12:48 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-04-29 21:29:16 -0400 |
| commit | c234d6ed2c7d8cd7b7991643dbec4383bed9e2dc (patch) | |
| tree | 4c31440337d40a32c41df69afcf2057f022cbced /embroider_print.py | |
| parent | 0700817a3b7de96dad7ca51989416cddfb7e65f9 (diff) | |
UI to select different thread paette
Diffstat (limited to 'embroider_print.py')
| -rw-r--r-- | embroider_print.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/embroider_print.py b/embroider_print.py index 7ab24876..43efa758 100644 --- a/embroider_print.py +++ b/embroider_print.py @@ -291,7 +291,7 @@ class Print(InkstitchExtension): patches = self.elements_to_patches(self.elements) stitch_plan = patches_to_stitch_plan(patches) - ThreadCatalog().match_and_apply_palette(stitch_plan) + palette = ThreadCatalog().match_and_apply_palette(stitch_plan) render_stitch_plan(self.document.getroot(), stitch_plan) self.strip_namespaces() @@ -346,6 +346,8 @@ class Print(InkstitchExtension): }, svg_overview = overview_svg, color_blocks = stitch_plan.color_blocks, + palettes = ThreadCatalog().palette_names(), + selected_palette = palette.name, ) # We've totally mucked with the SVG. Restore it so that we can save |
