mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Update scripts.py
fixes bug #464, which happens when controls is None, which leads to args_to being None.
This commit is contained in:
parent
874651e4d2
commit
2ddaeb318a
@ -92,6 +92,7 @@ class ScriptRunner:
|
|||||||
|
|
||||||
for script in self.scripts:
|
for script in self.scripts:
|
||||||
script.args_from = len(inputs)
|
script.args_from = len(inputs)
|
||||||
|
script.args_to = len(inputs)
|
||||||
|
|
||||||
controls = wrap_call(script.ui, script.filename, "ui", is_img2img)
|
controls = wrap_call(script.ui, script.filename, "ui", is_img2img)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user