From 2aa81ec3365c5ed2478f9783f78a38e77c0ef6c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= <sybren@stuvel.eu> Date: Tue, 3 Aug 2021 11:43:26 +0200 Subject: [PATCH] Pose Library: append to correct menu class for asset browser Append the pose library operators to the new `ASSETBROWSER_MT_context_menu` class instead of the old `FILEBROWSER_MT_context_menu` class. --- pose_library/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pose_library/gui.py b/pose_library/gui.py index e54a968a6..4518527a9 100644 --- a/pose_library/gui.py +++ b/pose_library/gui.py @@ -209,7 +209,7 @@ def register() -> None: WindowManager.pose_assets = bpy.props.CollectionProperty(type=AssetHandle) bpy.types.UI_MT_list_item_context_menu.prepend(pose_library_list_item_context_menu) - bpy.types.FILEBROWSER_MT_context_menu.prepend(pose_library_list_item_context_menu) + bpy.types.ASSETBROWSER_MT_context_menu.prepend(pose_library_list_item_context_menu) def unregister() -> None: @@ -219,4 +219,4 @@ def unregister() -> None: del WindowManager.pose_assets bpy.types.UI_MT_list_item_context_menu.remove(pose_library_list_item_context_menu) - bpy.types.FILEBROWSER_MT_context_menu.remove(pose_library_list_item_context_menu) + bpy.types.ASSETBROWSER_MT_context_menu.remove(pose_library_list_item_context_menu) -- GitLab