Commit 498515e7 authored by Nick Renieris's avatar Nick Renieris Committed by AUTOMATIC1111
Browse files

scripts/xy_grid: Handle edge-case with non-empty axis values

Fixes bug where if Type is Nothing and axis values are filled out (from ie. previously using another Type), it will still needlessly run it N times (with identical results).
parent a112168d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -159,6 +159,9 @@ class Script(scripts.Script):
        p.batch_size = 1

        def process_axis(opt, vals):
            if opt.label == 'Nothing':
                return [0]

            valslist = [x.strip() for x in vals.split(",")]

            if opt.type == int: