From f6c2aa89197c82cedfb31465fc4b2acffaeb8f25 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 5 Feb 2023 22:33:38 -0500 Subject: add more check_stop_flag() calls --- lib/stitches/auto_satin.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/stitches/auto_satin.py') diff --git a/lib/stitches/auto_satin.py b/lib/stitches/auto_satin.py index 6d792b4e..228f1325 100644 --- a/lib/stitches/auto_satin.py +++ b/lib/stitches/auto_satin.py @@ -24,6 +24,7 @@ from .utils.autoroute import (add_elements_to_group, add_jumps, get_starting_and_ending_nodes, preserve_original_groups, remove_original_elements) +from ..utils.threading import check_stop_flag class SatinSegment(object): @@ -366,6 +367,8 @@ def build_graph(elements, preserve_order=False): # best spots for us. for element in elements: + check_stop_flag() + segments = [] if isinstance(element, Stroke): segments.append(RunningStitch(element)) -- cgit v1.2.3