fix renumbering for last shot
parent
ac7de45311
commit
89f48d90f9
4
fn.py
4
fn.py
|
@ -414,11 +414,13 @@ def renumber_keep_existing(fo, offset=10):
|
||||||
print('-->', idx, fs.path)
|
print('-->', idx, fs.path)
|
||||||
|
|
||||||
if idx == last_idx: # handle last
|
if idx == last_idx: # handle last
|
||||||
|
print('last >>', fs.path)
|
||||||
|
print(ct)
|
||||||
if idx > 0:
|
if idx > 0:
|
||||||
prev = fsl[idx-1]
|
prev = fsl[idx-1]
|
||||||
num = get_num(prev)
|
num = get_num(prev)
|
||||||
if num is not None:
|
if num is not None:
|
||||||
break
|
add_fileslot_number(fs, num + offset)
|
||||||
else:
|
else:
|
||||||
add_fileslot_number(fs, ct)
|
add_fileslot_number(fs, ct)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue