From 88278d0c0726b758719ac517a2a12a919aba6950 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 24 Mar 2024 07:39:42 +0100 Subject: save thread names into embroidery files (#2777) --- lib/extensions/zip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/extensions/zip.py') diff --git a/lib/extensions/zip.py b/lib/extensions/zip.py index 6125a72e..24bfc633 100644 --- a/lib/extensions/zip.py +++ b/lib/extensions/zip.py @@ -56,6 +56,7 @@ class Zip(InkstitchExtension): min_stitch_len = self.metadata['min_stitch_len_mm'] patches = self.elements_to_stitch_groups(self.elements) stitch_plan = stitch_groups_to_stitch_plan(patches, collapse_len=collapse_len, min_stitch_len=min_stitch_len) + ThreadCatalog().match_and_apply_palette(stitch_plan, self.get_inkstitch_metadata()['thread-palette']) if self.options.x_repeats != 1 or self.options.y_repeats != 1: stitch_plan = self._make_offsets(stitch_plan) @@ -123,7 +124,6 @@ class Zip(InkstitchExtension): return stitch_plan.make_offsets(offsets) def get_threadlist(self, stitch_plan, design_name): - ThreadCatalog().match_and_apply_palette(stitch_plan, self.get_inkstitch_metadata()['thread-palette']) thread_used = [] thread_output = "%s\n" % _("Design Details") -- cgit v1.2.3