Unverified Commit dd292a92 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

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

Make XY grid cancellation much faster
parents ff6a5bce f202ff19
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -406,6 +406,9 @@ class Script(scripts.Script):
        grid_infotext = [None]
        grid_infotext = [None]


        def cell(x, y):
        def cell(x, y):
            if shared.state.interrupted:
                return Processed(p, [], p.seed, "")

            pc = copy(p)
            pc = copy(p)
            x_opt.apply(pc, x, xs)
            x_opt.apply(pc, x, xs)
            y_opt.apply(pc, y, ys)
            y_opt.apply(pc, y, ys)