Skip to content

Commit

Permalink
fix filename seq
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmandic committed Sep 27, 2024
1 parent 470ea10 commit 157f581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/images_namegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def sanitize(self, filename):
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)}")
Expand Down

0 comments on commit 157f581

Please sign in to comment.