diff --git a/functions/armature_modifying.py b/functions/armature_modifying.py index 5d85049..c1ad4bb 100644 --- a/functions/armature_modifying.py +++ b/functions/armature_modifying.py @@ -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 diff --git a/functions/mesh_tools.py b/functions/mesh_tools.py index c0e2a23..9819e66 100644 --- a/functions/mesh_tools.py +++ b/functions/mesh_tools.py @@ -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") diff --git a/ui/quick_access.py b/ui/quick_access.py index 68be41c..83cfb7f 100644 --- a/ui/quick_access.py +++ b/ui/quick_access.py @@ -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 diff --git a/ui/uv_tools.py b/ui/uv_tools.py index d5a6d83..e4b5244 100644 --- a/ui/uv_tools.py +++ b/ui/uv_tools.py @@ -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):