diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-03-24 07:39:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-24 07:39:42 +0100 |
| commit | 88278d0c0726b758719ac517a2a12a919aba6950 (patch) | |
| tree | 0c31fbd1067f029b2ae0927d3b8d9cf7aca27917 /lib/extensions/output.py | |
| parent | 4900c7085bd1ae4918be072e5d26a648c47c12f2 (diff) | |
save thread names into embroidery files (#2777)
Diffstat (limited to 'lib/extensions/output.py')
| -rw-r--r-- | lib/extensions/output.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/extensions/output.py b/lib/extensions/output.py index a3f35d2f..ef542277 100644 --- a/lib/extensions/output.py +++ b/lib/extensions/output.py @@ -9,6 +9,7 @@ import tempfile from ..output import write_embroidery_file from ..stitch_plan import stitch_groups_to_stitch_plan +from ..threads import ThreadCatalog from .base import InkstitchExtension @@ -56,6 +57,7 @@ class Output(InkstitchExtension): patches = self.elements_to_stitch_groups(self.elements) stitch_plan = stitch_groups_to_stitch_plan(patches, collapse_len=collapse_len, disable_ties=self.settings.get('laser_mode', False), min_stitch_len=min_stitch_len) + ThreadCatalog().match_and_apply_palette(stitch_plan, self.metadata['thread-palette']) temp_file = tempfile.NamedTemporaryFile(suffix=".%s" % self.file_extension, delete=False) |
