Merge pull request #49 from 989onan/RemoveUnusedShapekeys

fix some broken changes. Also fixes addon not loading
This commit is contained in:
Onan Chew
2024-09-11 21:02:10 -04:00
committed by GitHub
4 changed files with 4 additions and 4 deletions
-1
View File
@@ -1,6 +1,5 @@
import bpy
from ..core.register import register_wrap
from ..ui.panel import AvatarToolkitPanel
from bpy.types import Context, Mesh, Panel, Operator, Armature, EditBone
from ..functions.translations import t
from ..core.common import get_selected_armature, get_all_meshes
+1 -1
View File
@@ -6,7 +6,7 @@ from ..functions.translations import t
from ..core.register import register_wrap
@register_wrap
class AvatarToolkit_OT_RemoveUnusedShapekeys(bpy.types.Operators):
class AvatarToolkit_OT_RemoveUnusedShapekeys(bpy.types.Operator):
tolerance: bpy.props.FloatProperty(name=t("Tools.remove_unused_shapekeys.tolerance.label"), default=0.001, description=t("Tools.remove_unused_shapekeys.tolerance.desc"))
bl_idname = "avatar_toolkit.remove_unused_shapekeys"
bl_label = t("Tools.remove_unused_shapekeys.label")
+1 -1
View File
@@ -7,7 +7,7 @@ from ..functions.translations import t
from ..core.import_pmx import import_pmx
from ..core.import_pmd import import_pmd
from ..functions.import_anything import ImportAnyModel
from ..functions.import_anything import AvatarToolKit_OT_ImportAnyModel
from ..functions.armature_modifying import AvatarToolkit_OT_StartPoseMode, AvatarToolkit_OT_StopPoseMode, AvatarToolkit_OT_ApplyPoseAsRest, AvatarToolkit_OT_ApplyPoseAsShapekey
from ..core.common import get_selected_armature, set_selected_armature, get_all_meshes
+2 -1
View File
@@ -4,6 +4,7 @@ from ..core.register import register_wrap
from ..functions.translations import t
from ..functions.uv_tools import AvatarToolkit_OT_AlignUVEdgesToTarget
from .panel import draw_title
from .uv_panel import UVTools_PT_MainPanel
@register_wrap
class UVTools_PT_Tools(bpy.types.Panel):
@@ -12,7 +13,7 @@ class UVTools_PT_Tools(bpy.types.Panel):
bl_space_type = 'IMAGE_EDITOR'
bl_region_type = 'UI'
bl_category = "Avatar Toolkit"
bl_parent_id = "OBJECT_PT_avatar_toolkit_uv"
bl_parent_id = UVTools_PT_MainPanel.bl_idname
bl_order = 3
def draw(self, context: bpy.types.Context):