From 2ddaeb318a9626502ef4bf949a312253d8021ff0 Mon Sep 17 00:00:00 2001 From: OWKenobi Date: Thu, 15 Sep 2022 18:43:48 +0200 Subject: [PATCH] Update scripts.py fixes bug #464, which happens when controls is None, which leads to args_to being None. --- modules/scripts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/scripts.py b/modules/scripts.py index de8c5fc3..9cc5a185 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -92,6 +92,7 @@ class ScriptRunner: for script in self.scripts: script.args_from = len(inputs) + script.args_to = len(inputs) controls = wrap_call(script.ui, script.filename, "ui", is_img2img)