From d9e0af0829fc5b01bcac62aa0c758bd53a96cb14 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Tue, 8 Oct 2024 13:16:47 -0400 Subject: [PATCH] fix xyz grid restore Signed-off-by: Vladimir Mandic --- modules/scripts.py | 3 +++ scripts/xyz_grid.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/scripts.py b/modules/scripts.py index d5c8b0a22..15da9c070 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -457,6 +457,9 @@ class ScriptRunner: def init_field(title): if title == 'None': # called when an initial value is set from ui-config.json to show script's UI components return + if title not in self.titles: + errors.log.error(f'Script not found: {title}') + return script_index = self.titles.index(title) self.selectable_scripts[script_index].group.visible = True diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index 98c3fd8e5..e8f649182 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -20,12 +20,12 @@ class Script(scripts.Script): current_axis_options = [] def title(self): - return "X/Y/Z Grid" + return "XYZ Grid" def ui(self, is_img2img): self.current_axis_options = [x for x in axis_options if type(x) == AxisOption or x.is_img2img == is_img2img] with gr.Row(): - gr.HTML('  X/Y/Z Grid
') + gr.HTML('  XYZ Grid
') with gr.Row(): with gr.Column(): with gr.Row(variant='compact'):