New material cleaner

1.4.2

- feat: new material cleaner in GP layer menu with 3 options
  - clean material duplication (with sub option to not clear if color settings are different)
  - fuse material slots that have the same materials
  - remove empty slots
This commit is contained in:
Pullusb
2021-06-07 19:07:37 +02:00
parent f10f572bdc
commit 94e3b7a7ad
4 changed files with 189 additions and 1 deletions
+1
View File
@@ -351,6 +351,7 @@ def palette_manager_menu(self, context):
layout.operator("gp.load_palette", text='Load json Palette', icon='IMPORT').filepath = prefs.palette_path
layout.operator("gp.save_palette", text='Save json Palette', icon='EXPORT').filepath = prefs.palette_path
layout.operator("gp.load_blend_palette", text='Load color Palette', icon='COLOR').filepath = prefs.palette_path
layout.operator("gp.clean_material_stack", text='Clean material Stack', icon='NODE_MATERIAL')
classes = (