Merge pull request #6796 from space-nuko/faster-xy-grid-cancellation

Make XY grid cancellation much faster
This commit is contained in:
AUTOMATIC1111 2023-01-16 08:24:16 +03:00 committed by GitHub
commit dd292a925e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)