fix json palette export

2.3.4

- fixed: bug when exporting json palettes containing empty material slots
gpv2
pullusb 2023-09-27 14:54:56 +02:00
parent aa0eb9bd25
commit 280a575631
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog
2.3.4
- fixed: bug when exporting json palettes containing empty material slots
2.3.3
- fixed: Bug with animation manager objects data

View File

@ -129,6 +129,8 @@ class GPTB_OT_save_palette(bpy.types.Operator, ExportHelper):
dic = {}
allmat=[]
for mat in ob.data.materials:
if not mat:
continue
if not mat.is_grease_pencil:
continue
if mat in allmat:

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, 3, 3),
"version": (2, 3, 4),
"blender": (3, 0, 0),
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
"warning": "",