aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-25 16:45:22 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-25 16:45:22 +0000
commitca3e5519e8b6dc020c5e7ae508738afb5dc6f3ec (patch)
treeaa02e79e2cae338ae795db36ef7d3972d26264f1 /modules/ui.py
parentff107845b4814402a4722941d669e72055384771 (diff)
parent1877a3767ed7502c25245c3de3449b22067db74c (diff)
downloadstable-diffusion-webui-gfx803-ca3e5519e8b6dc020c5e7ae508738afb5dc6f3ec.tar.gz
stable-diffusion-webui-gfx803-ca3e5519e8b6dc020c5e7ae508738afb5dc6f3ec.tar.bz2
stable-diffusion-webui-gfx803-ca3e5519e8b6dc020c5e7ae508738afb5dc6f3ec.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 05d33563..f7ca5588 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1040,6 +1040,9 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
def loadsave(path, x):
def apply_field(obj, field, condition=None):
key = path + "/" + field
+
+ if getattr(obj,'custom_script_source',None) is not None:
+ key = 'customscript/' + obj.custom_script_source + '/' + key
if getattr(obj, 'do_not_save_to_config', False):
return