From e69c63dd7fa6eb35b39bab8ea9ce4df712efa06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 3 Aug 2021 11:34:32 +0200 Subject: Pose Library: remove "Open In Blender" from context menu Remove the "Open In Blender" (`ASSET_OT_open_containing_blend_file`) operator from the asset browser poselib-specific context menu. This option is now added by the asset browser itself, and thus was appearing twice. --- pose_library/gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pose_library/gui.py b/pose_library/gui.py index 6449675c..e54a968a 100644 --- a/pose_library/gui.py +++ b/pose_library/gui.py @@ -115,7 +115,8 @@ def pose_library_list_item_context_menu(self: UIList, context: Context) -> None: props.select = False layout.separator() - layout.operator("asset.open_containing_blend_file") + if is_pose_asset_view(): + layout.operator("asset.open_containing_blend_file") class ASSETBROWSER_PT_pose_library_usage(asset_utils.AssetBrowserSpecificCategoryPanel, Panel): -- cgit v1.2.3