Merge pull request #14523 from AUTOMATIC1111/paste-infotext-cast-int-as-float

paste infotext cast int as float
This commit is contained in:
AUTOMATIC1111 2024-01-04 11:19:18 +03:00 committed by GitHub
commit f903b4dda3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -479,6 +479,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)