Add Remove unused shapekeys

removes shapekeys that don't do anything
This commit is contained in:
989onan
2024-09-09 21:57:13 -04:00
parent ce6cedd776
commit 9bdaa1ef01
3 changed files with 62 additions and 0 deletions
+2
View File
@@ -7,6 +7,7 @@ from ..functions.translations import t
from ..core.common import get_selected_armature
from ..functions.seperate_by import SeparateByMaterials, SeparateByLooseParts
from ..functions.additional_tools import ApplyTransforms
from ..functions.mesh_tools import AvatarToolkit_OT_RemoveUnusedShapekeys
@register_wrap
class AvatarToolkitToolsPanel(bpy.types.Panel):
@@ -38,5 +39,6 @@ class AvatarToolkitToolsPanel(bpy.types.Panel):
row.operator(SeparateByLooseParts.bl_idname, text=t("Tools.separate_by_loose_parts.label"), icon='OUTLINER_OB_MESH')
row = layout.row(align=True)
row.operator(ApplyTransforms.bl_idname, text=t("Tools.apply_transforms.label"), icon='OBJECT_ORIGIN')
row.operator(AvatarToolkit_OT_RemoveUnusedShapekeys.bl_idname, text=t("Tools.remove_unused_shapekeys.label"), icon='SHAPEKEY_DATA')
else:
layout.label(text=t("Tools.select_armature"), icon='ERROR')