aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-16 08:24:16 +0300
committerGitHub <noreply@github.com>2023-01-16 08:24:16 +0300
commitdd292a925efc32ad580c927eeeb6e79592833be8 (patch)
treed7f3128405d2c7585caf1eeb848bc373ab197c38 /scripts
parentff6a5bcec1ce25aa8f08b157ea957d764be23d8d (diff)
parentf202ff1901c27d1f82d5e2684dba9e1ed24ffdf2 (diff)
Merge pull request #6796 from space-nuko/faster-xy-grid-cancellation
Make XY grid cancellation much faster
Diffstat (limited to 'scripts')
-rw-r--r--scripts/xy_grid.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py
index bd3087d4..13a3a046 100644
--- a/scripts/xy_grid.py
+++ b/scripts/xy_grid.py
@@ -406,6 +406,9 @@ class Script(scripts.Script):
grid_infotext = [None]
def cell(x, y):
+ if shared.state.interrupted:
+ return Processed(p, [], p.seed, "")
+
pc = copy(p)
x_opt.apply(pc, x, xs)
y_opt.apply(pc, y, ys)