Merge pull request #168 from blessedcoolant/bug-fixes

Fixed grid image not saving
This commit is contained in:
blessedcoolant 2022-08-29 13:05:53 +12:00 committed by GitHub
commit b6053108c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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