aboutsummaryrefslogtreecommitdiffstats
path: root/modules/infotext_utils.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2024-01-03 18:46:05 +0000
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2024-01-03 18:46:05 +0000
commitbfc48fbc244130770991fab284f6fedcef2054e7 (patch)
tree37e42a7c08134fe55eff313fd71cbfeb15846e72 /modules/infotext_utils.py
parent04a005f0e98ebade44b33237bf4ccaa64f12600a (diff)
downloadstable-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.py2
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)