diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-06-22 22:31:42 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-06-22 22:31:42 -0400 |
| commit | abbda62835bfc99e49d0de1ccdffb6739dd2142e (patch) | |
| tree | c2ba8c1a389decb9ce00355e596734fbb3c71201 /lib/elements | |
| parent | 0c527cc51e896f57d15c399c28c8c66c16d1cc59 (diff) | |
ending point speciifed by fill_end command
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/auto_fill.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/elements/auto_fill.py b/lib/elements/auto_fill.py index a2c63bd9..59816878 100644 --- a/lib/elements/auto_fill.py +++ b/lib/elements/auto_fill.py @@ -111,10 +111,17 @@ class AutoFill(Fill): else: return None + def get_ending_point(self): + if self.get_command('fill_end'): + return self.get_command('fill_end').target_point + else: + return None + def to_patches(self, last_patch): stitches = [] starting_point = self.get_starting_point(last_patch) + ending_point = self.get_ending_point() if self.fill_underlay: stitches.extend(auto_fill(self.underlay_shape, @@ -134,6 +141,7 @@ class AutoFill(Fill): self.max_stitch_length, self.running_stitch_length, self.staggers, - starting_point)) + starting_point, + ending_point)) return [Patch(stitches=stitches, color=self.color)] |
