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:
-rw-r--r--pose_library/operators.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pose_library/operators.py b/pose_library/operators.py
index e4e9c9af..49e3b50b 100644
--- a/pose_library/operators.py
+++ b/pose_library/operators.py
@@ -440,6 +440,8 @@ class POSELIB_OT_apply_pose_asset_for_keymap(Operator):
@classmethod
def poll(cls, context: Context) -> bool:
+ if not asset_utils.SpaceAssetInfo.is_asset_browser(context.space_data):
+ return False
return bpy.ops.poselib.apply_pose_asset.poll(context.copy())
def execute(self, context: Context) -> Set[str]: