diff options
| author | Andreas <v.andreas.1@web.de> | 2021-10-29 16:18:22 +0200 |
|---|---|---|
| committer | Kaalleen <reni@allenka.de> | 2022-05-04 18:57:12 +0200 |
| commit | 125db3f83b3b330df757f7cc0faf6489b3cb348d (patch) | |
| tree | 2ec854975fffd48129d171b2e1f57ff97df9995b /lib/patterns.py | |
| parent | 0fcf8bb97ced8df552cd0283b4ea009b6ca42623 (diff) | |
Applied style guide
Diffstat (limited to 'lib/patterns.py')
| -rw-r--r-- | lib/patterns.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/patterns.py b/lib/patterns.py index b4b60522..789d5f89 100644 --- a/lib/patterns.py +++ b/lib/patterns.py @@ -19,7 +19,7 @@ def is_pattern(node): def apply_patterns(patches, node): - patterns = get_patterns(node,"#inkstitch-pattern-marker") + patterns = get_patterns(node, "#inkstitch-pattern-marker") _apply_fill_patterns(patterns['fill_patterns'], patches) _apply_stroke_patterns(patterns['stroke_patterns'], patches) @@ -32,7 +32,8 @@ def _apply_stroke_patterns(patterns, patches): patch_points.append(stitch) if i == len(patch.stitches) - 1: continue - intersection_points = _get_pattern_points(stitch, patch.stitches[i+1], pattern) + intersection_points = _get_pattern_points( + stitch, patch.stitches[i+1], pattern) for point in intersection_points: patch_points.append(Stitch(point, tags=('pattern_point',))) patch.stitches = patch_points |
