kopia lustrzana https://github.com/inkstitch/inkstitch
stroke: as_multi_line_string ignore single point paths (#3491)
rodzic
c74240fefa
commit
24775f33bf
|
@ -508,7 +508,7 @@ class Stroke(EmbroideryElement):
|
|||
|
||||
@cache
|
||||
def as_multi_line_string(self):
|
||||
line_strings = [shgeo.LineString(path) for path in self.paths]
|
||||
line_strings = [shgeo.LineString(path) for path in self.paths if len(path) > 1]
|
||||
return shgeo.MultiLineString(line_strings)
|
||||
|
||||
@property
|
||||
|
|
Ładowanie…
Reference in New Issue