mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix xyz grid restore
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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('<span">  X/Y/Z Grid</span><br>')
|
||||
gr.HTML('<span">  XYZ Grid</span><br>')
|
||||
with gr.Row():
|
||||
with gr.Column():
|
||||
with gr.Row(variant='compact'):
|
||||
|
||||
Reference in New Issue
Block a user