fix simple satin

pull/248/head
Lex Neva 2018-07-28 20:10:27 -04:00
rodzic cdb8fdb133
commit f8f108367a
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -149,7 +149,6 @@ class Stroke(EmbroideryElement):
repeated_path.extend(this_path)
stitches = running_stitch(repeated_path, stitch_length)
stitches = bean_stitch(stitches, self.bean_stitch_repeats)
return Patch(self.color, stitches)
@ -163,6 +162,10 @@ class Stroke(EmbroideryElement):
patch = Patch(color=self.color, stitches=path, stitch_as_is=True)
elif self.is_running_stitch():
patch = self.running_stitch(path, self.running_stitch_length)
if self.bean_stitch_repeats > 0:
patch.stitches = bean_stitch(patch.stitches, self.bean_stitch_repeats)
else:
patch = self.simple_satin(path, self.zigzag_spacing, self.stroke_width)