diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-25 21:41:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 21:41:24 +0000 |
commit | c6c9d1227578525385a9e805b4099a07b3440062 (patch) | |
tree | fa9a735bea2f50b9aff9d3f460155d056ef5fd7c /scripts/xyz_grid.py | |
parent | 19c95de8eb6a1226f0cd1aaeaa9768cf3cbfdef9 (diff) | |
parent | 0466ee2a83680090e28de74881ccf306cb89667c (diff) | |
download | stable-diffusion-webui-gfx803-c6c9d1227578525385a9e805b4099a07b3440062.tar.gz stable-diffusion-webui-gfx803-c6c9d1227578525385a9e805b4099a07b3440062.tar.bz2 stable-diffusion-webui-gfx803-c6c9d1227578525385a9e805b4099a07b3440062.zip |
Merge pull request #14754 from AUTOMATIC1111/xyz-filter-blank-for-number-axes
XYZ filter blank for number axes
Diffstat (limited to 'scripts/xyz_grid.py')
-rw-r--r-- | scripts/xyz_grid.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index 2f385ebf..6d3e42c0 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -554,6 +554,8 @@ class Script(scripts.Script): valslist_ext = []
for val in valslist:
+ if val.strip() == '':
+ continue
m = re_range.fullmatch(val)
mc = re_range_count.fullmatch(val)
if m is not None:
@@ -576,6 +578,8 @@ class Script(scripts.Script): valslist_ext = []
for val in valslist:
+ if val.strip() == '':
+ continue
m = re_range_float.fullmatch(val)
mc = re_range_count_float.fullmatch(val)
if m is not None:
|