From 3a014e077e98e01ecc4efe76405230c8dd3e8376 Mon Sep 17 00:00:00 2001 From: pullusb Date: Wed, 7 Jun 2023 11:59:26 +0200 Subject: [PATCH] fix modifier target check 1.3.3 - fixed: problem evaluating broken modifier target --- CHANGELOG.md | 4 ++++ OP_check_scene.py | 3 +++ __init__.py | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8df7bbe..08fe7d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ Activate / deactivate layer opacity according to prefix Activate / deactivate all masks using MA layers --> +1.3.3 + +- fixed: problem evaluating broken modifier target + 1.3.2 - fixed: compatibility with blender 3.5 (nodegroup socket API change) diff --git a/OP_check_scene.py b/OP_check_scene.py index 486eb3b..ea8abaf 100644 --- a/OP_check_scene.py +++ b/OP_check_scene.py @@ -12,10 +12,13 @@ def check_broken_modifier_target(pool=None, reports=None): for m in o.grease_pencil_modifiers: if not hasattr(m, 'layer'): continue + if not m.layer: + continue if not m.layer in lay_name_list: reports.append(f'Broken modifier target :{o.name} > {m.name} > {m.layer}') # else: # print(f'Modifier target :{o.name} > {m.name} > ok') + return reports diff --git a/__init__.py b/__init__.py index f83ffe4..311f6ec 100644 --- a/__init__.py +++ b/__init__.py @@ -2,7 +2,7 @@ bl_info = { "name": "GP Render", "description": "Organise export of gp layers through compositor output", "author": "Samuel Bernou", - "version": (1, 3, 2), + "version": (1, 3, 3), "blender": (2, 93, 0), "location": "View3D", "warning": "",