From 479761f91cfb52064ef692ab7a2d7591cf59fd1a Mon Sep 17 00:00:00 2001 From: AIrjen Date: Fri, 31 May 2024 14:57:02 +0200 Subject: [PATCH] fix fix --- build_dynamic_prompt.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index ab60e9e..dcf33bf 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -101,8 +101,25 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all giventypeofimage = selected_opb_preset["giventypeofimage"] antistring = selected_opb_preset["antistring"] + # new method of subject choosing from the interface, lets translate this: + # really hacky way of doing this now. + if("-" in forcesubject): + subjectlist = translate_main_subject(forcesubject) + forcesubject = subjectlist[0] + # ugly but it works :D Keeps both methods working while the UI changes. + if(subtypeobject != "all" or subtypeobject != ""): + subtypeobject = subjectlist[1] + if(subtypeanimal != "all" or subtypeanimal != ""): + subtypeanimal = subjectlist[1] + if(subtypelocation != "all" or subtypelocation != ""): + subtypelocation = subjectlist[1] + if(subtypehumanoid != "all" or subtypehumanoid != ""): + subtypehumanoid = subjectlist[1] + if(subtypeconcept != "all" or subtypeconcept != ""): + subtypeconcept = subjectlist[1] + originalartistchoice = artists doartistnormal = True