Browse Source

xyz filter blank for number axes

w-e-w 1 year ago
parent
commit
0466ee2a83
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scripts/xyz_grid.py

+ 4 - 0
scripts/xyz_grid.py

@@ -554,6 +554,8 @@ class Script(scripts.Script):
                 valslist_ext = []
                 valslist_ext = []
 
 
                 for val in valslist:
                 for val in valslist:
+                    if val.strip() == '':
+                        continue
                     m = re_range.fullmatch(val)
                     m = re_range.fullmatch(val)
                     mc = re_range_count.fullmatch(val)
                     mc = re_range_count.fullmatch(val)
                     if m is not None:
                     if m is not None:
@@ -576,6 +578,8 @@ class Script(scripts.Script):
                 valslist_ext = []
                 valslist_ext = []
 
 
                 for val in valslist:
                 for val in valslist:
+                    if val.strip() == '':
+                        continue
                     m = re_range_float.fullmatch(val)
                     m = re_range_float.fullmatch(val)
                     mc = re_range_count_float.fullmatch(val)
                     mc = re_range_count_float.fullmatch(val)
                     if m is not None:
                     if m is not None: