Add apply shapekey to basis

add apply shapekey to basis to shapekey menu

I believe I wrote this simple implementation for Tuxedo, I don't remember how I came up with it.
This commit is contained in:
989onan
2024-09-22 14:50:26 -04:00
parent b015736ead
commit 8191c795f4
4 changed files with 65 additions and 2 deletions
+5
View File
@@ -33,6 +33,11 @@ def register():
#finally register properties that may use some classes.
core.register.register_properties()
from functions.mesh_tools import AvatarToolkit_OT_ApplyShapeKey
bpy.types.MESH_MT_shape_key_context_menu.append((lambda self, context: self.layout.separator()))
bpy.types.MESH_MT_shape_key_context_menu.append((lambda self, context: self.layout.operator(AvatarToolkit_OT_ApplyShapeKey.bl_idname, icon="KEY_HLT")))
def unregister():
print("Unregistering Avatar Toolkit")
# Unregister the UI classes