diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-05-20 16:12:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-20 16:12:50 +0200 |
| commit | eebf69947f8616b25113d147dbf179697be803cf (patch) | |
| tree | fc44ed767419823b9b57f2bb0f9e5a26d1a02af9 /lib/svg/clip.py | |
| parent | 72dc85d3dd4fb6813b3ae610f651fe2a1800122b (diff) | |
Manual stitch: apply clipping (#3734)
* manual stitch: apply clipping
* add clip to cache
Diffstat (limited to 'lib/svg/clip.py')
| -rw-r--r-- | lib/svg/clip.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/svg/clip.py b/lib/svg/clip.py index b8c97894..cc773d21 100644 --- a/lib/svg/clip.py +++ b/lib/svg/clip.py @@ -6,7 +6,6 @@ from shapely.geometry import MultiPolygon, Polygon from shapely.validation import make_valid -from ..elements import EmbroideryElement from ..utils import ensure_multi_polygon from .tags import SVG_GROUP_TAG, SVG_PATH_TAG @@ -33,6 +32,9 @@ def get_clip_path(node): def _clip_paths(node_or_group): + # avoid circular import for EmbroideryElement + from ..elements import EmbroideryElement + clip = node_or_group.clip if clip is None: return |
