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

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
...@@ -159,6 +159,9 @@ class Script(scripts.Script): ...@@ -159,6 +159,9 @@ class Script(scripts.Script):
p.batch_size = 1 p.batch_size = 1
def process_axis(opt, vals): def process_axis(opt, vals):
if opt.label == 'Nothing':
return [0]
valslist = [x.strip() for x in vals.split(",")] valslist = [x.strip() for x in vals.split(",")]
if opt.type == int: if opt.type == int:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment