From fcbcd0a4fb36368fde332898e1cac03664ebb922 Mon Sep 17 00:00:00 2001 From: Yusarina Date: Wed, 25 Sep 2024 23:42:55 +0100 Subject: [PATCH] Quick Fix to Apply shapeky to basis Was causing addon not to load, just a quick fix. --- __init__.py | 2 +- functions/mesh_tools.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index eea85d4..bb1b67e 100644 --- a/__init__.py +++ b/__init__.py @@ -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"))) diff --git a/functions/mesh_tools.py b/functions/mesh_tools.py index 89a76ac..1ebd43f 100644 --- a/functions/mesh_tools.py +++ b/functions/mesh_tools.py @@ -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"