Skip to content

Commit

Permalink
Merge pull request #14523 from AUTOMATIC1111/paste-infotext-cast-int-…
Browse files Browse the repository at this point in the history
…as-float

paste infotext cast int as float
  • Loading branch information
AUTOMATIC1111 committed Jan 4, 2024
2 parents 3f7f61e + bfc48fb commit f903b4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/infotext_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ def paste_func(prompt):

if valtype == bool and v == "False":
val = False
elif valtype == int:
val = float(v)
else:
val = valtype(v)

Expand Down

0 comments on commit f903b4d

Please sign in to comment.