Grid image not saving after recent changes has been fixed.

This commit is contained in:
blessedcoolant 2022-08-29 10:11:11 +12:00
parent ac02a775e4
commit f0e2fa781f

View File

@ -37,7 +37,7 @@ class PngWriter:
if not upscaled:
self.files_written.append([self.filepath, seed])
def unique_filename(self, seed, upscaled, previouspath=None):
def unique_filename(self, seed, upscaled=False, previouspath=None):
revision = 1
if previouspath is None:
@ -60,7 +60,7 @@ class PngWriter:
basename = os.path.basename(previouspath)
x = re.match('^(\d+)\..*\.png', basename)
if not x:
return self.unique_filename(seed, previouspath)
return self.unique_filename(seed, upscaled, previouspath)
basecount = int(x.groups()[0])
series = 0