kopia lustrzana https://github.com/inkstitch/inkstitch
save thread names into embroidery files (#2777)
rodzic
4900c7085b
commit
88278d0c07
|
@ -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)
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Ładowanie…
Reference in New Issue