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).
This commit is contained in:
Nick Renieris 2022-09-29 21:16:12 +03:00 committed by AUTOMATIC1111
parent a112168d28
commit 498515e7a1

View file

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