Merge pull request #2049 from inkstitch/rlevine/dst_header_title

Add filename to .dst header
pull/2045/head
Rick Levine 2023-02-16 11:32:28 -08:00 zatwierdzone przez GitHub
commit 643903a40f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -3,6 +3,7 @@
# Copyright (c) 2010 Authors
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
import os
import sys
import inkex
@ -60,6 +61,10 @@ def write_embroidery_file(file_path, stitch_plan, svg, settings={}):
# origin = origin * scale
pattern = pyembroidery.EmbPattern()
# For later use when writing .dst header title field.
pattern.extras['name'] = os.path.splitext(svg.name)[0]
stitch = Stitch(0, 0)
for color_block in stitch_plan:

@ -1 +1 @@
Subproject commit 9347ea882a40764cfc712d1bb9f90324945767c0
Subproject commit 322bfa5f7edbbcf741ff032b82a637d04b0b97a0