From c08568cc376d2e4298710c4172fb0c74f0611de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 21 Dec 2021 13:31:14 +0100 Subject: Fix T94264: Pose Library, doubleclick-to-apply only in asset browser Fix a keymap collision between the pose library and the file manager. Only allow `applying a pose by doubleclicking it in the asset browser, and not in the file browser. This prevents a crash; appending an Action would temp-load it in order to apply it as a pose, which of course conflicts with the "Append" functionality. --- pose_library/operators.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pose_library') 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]: -- cgit v1.2.3