fix modifier layer target check

2.1.5

- fixed: false positive with checkfile in modifier layer target
gpv2
pullusb 2023-01-11 11:24:27 +01:00
parent 5dbd59652e
commit 6506536fb2
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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": "",