Merge pull request #59 from Yusarina/Apply-Shapeky-to-Basis-small-fix

Quick Fix to Apply shapeky to basis in init.py
This commit is contained in:
Onan Chew
2024-09-25 19:39:06 -04:00
committed by GitHub
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ def register():
#finally register properties that may use some classes. #finally register properties that may use some classes.
core.register.register_properties() core.register.register_properties()
from functions.mesh_tools import AvatarToolkit_OT_ApplyShapeKey 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.separator()))
bpy.types.MESH_MT_shape_key_context_menu.append((lambda self, context: self.layout.operator(AvatarToolkit_OT_ApplyShapeKey.bl_idname, icon="KEY_HLT"))) bpy.types.MESH_MT_shape_key_context_menu.append((lambda self, context: self.layout.operator(AvatarToolkit_OT_ApplyShapeKey.bl_idname, icon="KEY_HLT")))
-2
View File
@@ -55,8 +55,6 @@ class AvatarToolkit_OT_RemoveUnusedShapekeys(bpy.types.Operator):
continue continue
ob.shape_key_remove(ob.data.shape_keys.key_blocks[kb_name]) ob.shape_key_remove(ob.data.shape_keys.key_blocks[kb_name])
@register_wrap @register_wrap
class AvatarToolkit_OT_ApplyShapeKey(bpy.types.Operator): class AvatarToolkit_OT_ApplyShapeKey(bpy.types.Operator):
bl_idname = "avatar_toolkit.apply_shape_key" bl_idname = "avatar_toolkit.apply_shape_key"