diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2021-08-03 12:43:26 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2021-08-03 12:43:26 +0300 |
commit | 2aa81ec3365c5ed2478f9783f78a38e77c0ef6c1 (patch) | |
tree | 7d8921155d721623bca8181d17b479cc1837e7a1 | |
parent | e69c63dd7fa6eb35b39bab8ea9ce4df712efa06f (diff) |
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.
-rw-r--r-- | pose_library/gui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pose_library/gui.py b/pose_library/gui.py index e54a968a..4518527a 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) |