diff options
| author | Andreas <v.andreas.1@web.de> | 2021-11-10 17:23:24 +0100 |
|---|---|---|
| committer | Kaalleen <reni@allenka.de> | 2022-05-04 18:59:08 +0200 |
| commit | 3caaae693893354ff10472044116e623e219e633 (patch) | |
| tree | 74ccd998e96426cdef662d355416197e11aba778 /lib/patterns.py | |
| parent | 1a1939b5daf421116791b5ae45434cb1aba2ea38 (diff) | |
bug fixing
Diffstat (limited to 'lib/patterns.py')
| -rw-r--r-- | lib/patterns.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/patterns.py b/lib/patterns.py index 789d5f89..7ec4d082 100644 --- a/lib/patterns.py +++ b/lib/patterns.py @@ -65,7 +65,7 @@ def _apply_fill_patterns(patterns, patches): patch.stitches = patch_points -def get_patterns(node, marker_id): +def get_patterns(node, marker_id, get_fills=True, get_strokes=True): from .elements import EmbroideryElement from .elements.auto_fill import auto_fill from .elements.stroke import Stroke @@ -88,7 +88,7 @@ def get_patterns(node, marker_id): for ring in linear_rings: fills.append(shgeo.Polygon(ring)) - if stroke is not None: + if get_strokes and stroke is not None: stroke_pattern = Stroke(pattern).paths line_strings = [shgeo.LineString(path) for path in stroke_pattern] strokes.append(shgeo.MultiLineString(line_strings)) |
