Fix to export button

This commit is contained in:
Yusarina
2024-12-16 17:31:04 +00:00
parent c233e8aace
commit 7a6244f755
+5 -2
View File
@@ -60,9 +60,12 @@ class AvatarToolKit_OT_ExportMenu(Operator):
bl_idname: str = "avatar_toolkit.export"
bl_label: str = t("QuickAccess.export")
@classmethod
def poll(cls, context: Context) -> bool:
return get_active_armature(context) is not None
def execute(self, context: Context) -> Set[str]:
wm: WindowManager = context.window_manager
wm.call_menu(name=AvatarToolKit_MT_ExportMenu.bl_idname)
bpy.context.window_manager.popup_menu(AvatarToolKit_MT_ExportMenu.draw)
return {'FINISHED'}
class AvatarToolKit_PT_QuickAccessPanel(Panel):