filter invalid paths in satins (#2916)

pull/2918/head dev-build-kaalleen-fix-zigzag-to-satin
Kaalleen 2024-05-17 09:57:16 +02:00 zatwierdzone przez GitHub
rodzic b024dc57f2
commit 4cda460741
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -546,7 +546,7 @@ class SatinColumn(EmbroideryElement):
def csp(self):
paths = self.parse_path()
# exclude subpaths which are just a point
paths = [path for path in paths if len(path) >= 2]
paths = [path for path in paths if shgeo.MultiLineString(path).length > 0]
return paths
@property