fix removed stroke frame number in prints
This commit is contained in:
parent
2868bad3da
commit
e93ee458b9
@ -18,11 +18,11 @@ def remove_stroke_exact_duplications(apply=True, verbose=True):
|
||||
# TODO: Add additional check of material (even if unlikely to happen, better to avoid false positive)
|
||||
ct = 0
|
||||
if verbose:
|
||||
print('\nRemove redundant strokdes in GP frames...')
|
||||
print('\nRemove redundant strokes in GP frames...')
|
||||
gp_datas = [gp for gp in bpy.data.grease_pencils_v3]
|
||||
for gp in gp_datas:
|
||||
for l in gp.layers:
|
||||
for f_id, f in enumerate(l.frames):
|
||||
for f in l.frames:
|
||||
stroke_list = []
|
||||
idx_to_delete = []
|
||||
|
||||
@ -37,7 +37,7 @@ def remove_stroke_exact_duplications(apply=True, verbose=True):
|
||||
if apply and idx_to_delete:
|
||||
# Remove redundancy (carefull, passing an empty list delete all strokes)
|
||||
if verbose:
|
||||
print(f"{gp.name} > {l.name} > {f_id}: {len(idx_to_delete)} strokes")
|
||||
print(f"{gp.name} > {l.name} > frame {f.frame_number}: {len(idx_to_delete)} strokes")
|
||||
f.drawing.remove_strokes(indices=idx_to_delete)
|
||||
return ct
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user