diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2024-01-03 18:46:05 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2024-01-03 18:46:05 +0000 |
commit | bfc48fbc244130770991fab284f6fedcef2054e7 (patch) | |
tree | 37e42a7c08134fe55eff313fd71cbfeb15846e72 /modules/infotext_utils.py | |
parent | 04a005f0e98ebade44b33237bf4ccaa64f12600a (diff) | |
download | stable-diffusion-webui-gfx803-bfc48fbc244130770991fab284f6fedcef2054e7.tar.gz stable-diffusion-webui-gfx803-bfc48fbc244130770991fab284f6fedcef2054e7.tar.bz2 stable-diffusion-webui-gfx803-bfc48fbc244130770991fab284f6fedcef2054e7.zip |
paste infotext cast int as float
Diffstat (limited to 'modules/infotext_utils.py')
-rw-r--r-- | modules/infotext_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/infotext_utils.py b/modules/infotext_utils.py index e582ee47..a21329e6 100644 --- a/modules/infotext_utils.py +++ b/modules/infotext_utils.py @@ -477,6 +477,8 @@ def connect_paste(button, paste_fields, input_comp, override_settings_component, if valtype == bool and v == "False":
val = False
+ elif valtype == int:
+ val = float(v)
else:
val = valtype(v)
|