diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2021-08-03 12:34:32 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2021-08-03 12:42:34 +0300 |
commit | e69c63dd7fa6eb35b39bab8ea9ce4df712efa06f (patch) | |
tree | 35d2d790ce51a58bd561d8d359e092633f873436 | |
parent | 6fb64557179b3783fffae5bf704ad2ab8f7046a6 (diff) |
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.
-rw-r--r-- | pose_library/gui.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |