fix nasty stroke bug

pull/4/head
Lex Neva 2017-01-20 22:04:17 +00:00
rodzic 5ac04a40b8
commit 6bf62825c9
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -785,14 +785,14 @@ class Stroke(EmbroideryElement):
if stroke_width == 0.0 and last_segment_direction is not None:
if abs(1.0 - along * last_segment_direction) > 0.5:
# if greater than 45 degree angle, stitch the corner
rho = self.zigzag_spacing
rho = zigzag_spacing
patch.add_stitch(p0)
# iteration variable: how far we are along segment
while (rho <= seg_len):
left_pt = p0 + along * rho + perp * side
patch.add_stitch(left_pt)
rho += self.zigzag_spacing
rho += zigzag_spacing
side = -side
p0 = p1