From 157f581506fa5752f1cd570c8d0d39fe506983d3 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 27 Sep 2024 07:48:04 -0400 Subject: [PATCH] fix filename seq --- modules/images_namegen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/images_namegen.py b/modules/images_namegen.py index ea6914102..3d0f37faa 100644 --- a/modules/images_namegen.py +++ b/modules/images_namegen.py @@ -177,6 +177,7 @@ class FilenameGenerator: return fn def sequence(self, fn, dirname, basename): + x = fn if shared.opts.save_images_add_number or '[seq]' in fn: if '[seq]' not in fn: fn = os.path.join(os.path.dirname(fn), f"[seq]-{os.path.basename(fn)}")