summaryrefslogtreecommitdiff
path: root/lib/extensions/knockdown_fill.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-02-25 07:16:33 +0100
committerGitHub <noreply@github.com>2025-02-25 07:16:33 +0100
commitf8cedafcbe49590154cbef6832f347588b6a72df (patch)
treea0d735a35dd66375494e7cf2f5f41ad89ebba399 /lib/extensions/knockdown_fill.py
parent18dbafb0c9a51974f5453ef25ed8bd564c348deb (diff)
knockdown: mitre limit cannot be zero (#3537)
Diffstat (limited to 'lib/extensions/knockdown_fill.py')
-rw-r--r--lib/extensions/knockdown_fill.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/knockdown_fill.py b/lib/extensions/knockdown_fill.py
index 35459016..8815efa5 100644
--- a/lib/extensions/knockdown_fill.py
+++ b/lib/extensions/knockdown_fill.py
@@ -66,7 +66,7 @@ class KnockdownFill(InkstitchExtension):
self.options.offset * PIXELS_PER_MM,
cap_style=int(self.options.join_style),
join_style=int(self.options.join_style),
- mitre_limit=int(self.options.mitre_limit)
+ mitre_limit=float(max(self.options.mitre_limit, 0.1))
)
combined_shape = combined_shape.simplify(0.3)
combined_shape = ensure_multi_polygon(combined_shape)