Merge pull request #87 from Yusarina/reeee

Fix to export button
This commit is contained in:
Onan Chew
2024-12-16 13:30:04 -05:00
committed by GitHub
+5 -2
View File
@@ -60,9 +60,12 @@ class AvatarToolKit_OT_ExportMenu(Operator):
bl_idname: str = "avatar_toolkit.export" bl_idname: str = "avatar_toolkit.export"
bl_label: str = t("QuickAccess.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]: def execute(self, context: Context) -> Set[str]:
wm: WindowManager = context.window_manager bpy.context.window_manager.popup_menu(AvatarToolKit_MT_ExportMenu.draw)
wm.call_menu(name=AvatarToolKit_MT_ExportMenu.bl_idname)
return {'FINISHED'} return {'FINISHED'}
class AvatarToolKit_PT_QuickAccessPanel(Panel): class AvatarToolKit_PT_QuickAccessPanel(Panel):