Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2021-08-03 12:34:32 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2021-08-03 12:42:34 +0300
commite69c63dd7fa6eb35b39bab8ea9ce4df712efa06f (patch)
tree35d2d790ce51a58bd561d8d359e092633f873436
parent6fb64557179b3783fffae5bf704ad2ab8f7046a6 (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.py3
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):