Commit 50ae19ac authored by DepFA's avatar DepFA Committed by AUTOMATIC1111
Browse files

add custom script source to config path keys

parent 31a0fbf1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1041,6 +1041,9 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo):
        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