fix modifier target check

1.3.3

- fixed: problem evaluating broken modifier target
main
pullusb 2023-06-07 11:59:26 +02:00
parent 556f767f3b
commit 3a014e077e
3 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,10 @@ Activate / deactivate layer opacity according to prefix
Activate / deactivate all masks using MA layers Activate / deactivate all masks using MA layers
--> -->
1.3.3
- fixed: problem evaluating broken modifier target
1.3.2 1.3.2
- fixed: compatibility with blender 3.5 (nodegroup socket API change) - fixed: compatibility with blender 3.5 (nodegroup socket API change)

View File

@ -12,10 +12,13 @@ def check_broken_modifier_target(pool=None, reports=None):
for m in o.grease_pencil_modifiers: for m in o.grease_pencil_modifiers:
if not hasattr(m, 'layer'): if not hasattr(m, 'layer'):
continue continue
if not m.layer:
continue
if not m.layer in lay_name_list: if not m.layer in lay_name_list:
reports.append(f'Broken modifier target :{o.name} > {m.name} > {m.layer}') reports.append(f'Broken modifier target :{o.name} > {m.name} > {m.layer}')
# else: # else:
# print(f'Modifier target :{o.name} > {m.name} > ok') # print(f'Modifier target :{o.name} > {m.name} > ok')
return reports return reports

View File

@ -2,7 +2,7 @@ bl_info = {
"name": "GP Render", "name": "GP Render",
"description": "Organise export of gp layers through compositor output", "description": "Organise export of gp layers through compositor output",
"author": "Samuel Bernou", "author": "Samuel Bernou",
"version": (1, 3, 2), "version": (1, 3, 3),
"blender": (2, 93, 0), "blender": (2, 93, 0),
"location": "View3D", "location": "View3D",
"warning": "", "warning": "",