From 2e74954c715c5dd8b4040554a81781ba45eb2600 Mon Sep 17 00:00:00 2001 From: Daniele Procida Date: Thu, 26 Dec 2019 20:19:41 +0000 Subject: [PATCH] Added check for repeat controls in linedraw --- linedraw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linedraw.py b/linedraw.py index 7f7b05a..d032b81 100644 --- a/linedraw.py +++ b/linedraw.py @@ -116,7 +116,7 @@ def vectorise( lines = [] - if draw_contours: + if draw_contours and repeat_contours: contours = sortlines(getcontours( image.resize((int(resolution/draw_contours), int(resolution/draw_contours*h/w))), draw_contours @@ -124,7 +124,7 @@ def vectorise( for r in range(repeat_contours): lines += contours - if draw_hatch: + if draw_hatch and repeat_hatch: hatches = sortlines( hatch( # image,