From 6506536fb282d88251e19cbd73689667a58cdd27 Mon Sep 17 00:00:00 2001 From: pullusb Date: Wed, 11 Jan 2023 11:24:27 +0100 Subject: [PATCH] fix modifier layer target check 2.1.5 - fixed: false positive with checkfile in modifier layer target --- OP_file_checker.py | 4 ++-- __init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OP_file_checker.py b/OP_file_checker.py index 7e10591..37e885b 100755 --- a/OP_file_checker.py +++ b/OP_file_checker.py @@ -180,8 +180,8 @@ class GPTB_OT_file_checker(bpy.types.Operator): for m in o.grease_pencil_modifiers: if not hasattr(m, 'layer'): continue - if not m.layer in lay_name_list: - mess = f'Broken modifier target: {o.name} > {m.name} > {m.layer}' + if m.layer != '' and not m.layer in lay_name_list: + mess = f'Broken modifier layer target: {o.name} > {m.name} > {m.layer}' print(mess) problems.append(mess) diff --git a/__init__.py b/__init__.py index 8f1ecd3..a68bb6e 100755 --- a/__init__.py +++ b/__init__.py @@ -4,7 +4,7 @@ bl_info = { "name": "GP toolbox", "description": "Tool set for Grease Pencil in animation production", "author": "Samuel Bernou, Christophe Seux", -"version": (2, 1, 4), +"version": (2, 1, 5), "blender": (3, 0, 0), "location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties", "warning": "",