From 2868bad3da56816549bfcf8150f9de9e7c2004db Mon Sep 17 00:00:00 2001 From: pullusb Date: Tue, 17 Jun 2025 17:18:47 +0200 Subject: [PATCH] fix verbose mode --- OP_file_checker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OP_file_checker.py b/OP_file_checker.py index ae56c91..a25abca 100755 --- a/OP_file_checker.py +++ b/OP_file_checker.py @@ -18,7 +18,7 @@ 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 strokdes in GP frames...') gp_datas = [gp for gp in bpy.data.grease_pencils_v3] for gp in gp_datas: for l in gp.layers: @@ -36,7 +36,8 @@ 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) - print(f"{gp.name} > {l.name} > {f_id}: {len(idx_to_delete)} strokes") + if verbose: + print(f"{gp.name} > {l.name} > {f_id}: {len(idx_to_delete)} strokes") f.drawing.remove_strokes(indices=idx_to_delete) return ct