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@blender.org>2021-11-18 19:48:16 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-11-18 19:51:36 +0300
commite4b8340d40391977696cd42603506fec56523b7a (patch)
treed183c6c4ff86820364a8d734605d9d1da0f76cf6
parentadcfbf4df8719c5b3b70349ebd20f4ce1be83de6 (diff)
Pose Library: mark 'for keymap' operators as internal
The `POSELIB_OT_apply_pose_asset_for_keymap` and `POSELIB_OT_blend_pose_asset_for_keymap` operators are a bit special, as they are for use in the keymap only. Marking them as `INTERNAL` removes them from the F3 menu (which will already contain the regular apply/blend operators anyway).
-rw-r--r--pose_library/operators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pose_library/operators.py b/pose_library/operators.py
index f8fb7987..5a2a4336 100644
--- a/pose_library/operators.py
+++ b/pose_library/operators.py
@@ -405,7 +405,7 @@ class POSELIB_OT_pose_asset_select_bones(PoseAssetUser, Operator):
# "Flip Pose" checkbox.
class POSELIB_OT_blend_pose_asset_for_keymap(Operator):
bl_idname = "poselib.blend_pose_asset_for_keymap"
- bl_options = {"REGISTER", "UNDO"}
+ bl_options = {"REGISTER", "UNDO", "INTERNAL"}
_rna = bpy.ops.poselib.blend_pose_asset.get_rna_type()
bl_label = _rna.name
@@ -431,7 +431,7 @@ class POSELIB_OT_blend_pose_asset_for_keymap(Operator):
# "Flip Pose" checkbox.
class POSELIB_OT_apply_pose_asset_for_keymap(Operator):
bl_idname = "poselib.apply_pose_asset_for_keymap"
- bl_options = {"REGISTER", "UNDO"}
+ bl_options = {"REGISTER", "UNDO", "INTERNAL"}
_rna = bpy.ops.poselib.apply_pose_asset.get_rna_type()
bl_label = _rna.name