Quick Fix to Apply shapeky to basis
Was causing addon not to load, just a quick fix.
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ def register():
|
||||
#finally register properties that may use some classes.
|
||||
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.operator(AvatarToolkit_OT_ApplyShapeKey.bl_idname, icon="KEY_HLT")))
|
||||
|
||||
@@ -55,8 +55,6 @@ class AvatarToolkit_OT_RemoveUnusedShapekeys(bpy.types.Operator):
|
||||
continue
|
||||
ob.shape_key_remove(ob.data.shape_keys.key_blocks[kb_name])
|
||||
|
||||
|
||||
|
||||
@register_wrap
|
||||
class AvatarToolkit_OT_ApplyShapeKey(bpy.types.Operator):
|
||||
bl_idname = "avatar_toolkit.apply_shape_key"
|
||||
|
||||
Reference in New Issue
Block a user