batch lettering: skip empty text ()

pull/3628/head
Kaalleen 2025-04-02 17:00:08 +02:00 zatwierdzone przez GitHub
rodzic 2d18a061e3
commit f809fb52a6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 0 usunięć
lib/extensions

Wyświetl plik

@ -135,6 +135,8 @@ class BatchLettering(InkstitchExtension):
path = tempfile.mkdtemp()
files = []
for i, text in enumerate(texts):
if not text:
continue
stitch_plan, lettering_group = self.generate_stitch_plan(text, text_positioning_path)
for file_format in file_formats:
files.append(self.generate_output_file(file_format, path, text, stitch_plan, i))