diff --git a/pose_library/operators.py b/pose_library/operators.py index 2032bf8b72080a8910b04bc8d1a67a3c0cdfae04..f8fb79879a9cbb2d2297d38395ce2da625a6529a 100644 --- a/pose_library/operators.py +++ b/pose_library/operators.py @@ -399,6 +399,10 @@ class POSELIB_OT_pose_asset_select_bones(PoseAssetUser, Operator): return cls.bl_description.replace("Select", "Deselect") +# This operator takes the Window Manager's `poselib_flipped` property, and +# passes it to the `POSELIB_OT_blend_pose_asset` operator. This makes it +# possible to bind a key to the operator and still have it respect the global +# "Flip Pose" checkbox. class POSELIB_OT_blend_pose_asset_for_keymap(Operator): bl_idname = "poselib.blend_pose_asset_for_keymap" bl_options = {"REGISTER", "UNDO"} @@ -421,6 +425,10 @@ class POSELIB_OT_blend_pose_asset_for_keymap(Operator): return bpy.ops.poselib.blend_pose_asset(context.copy(), 'INVOKE_DEFAULT', flipped=flipped) +# This operator takes the Window Manager's `poselib_flipped` property, and +# passes it to the `POSELIB_OT_apply_pose_asset` operator. This makes it +# possible to bind a key to the operator and still have it respect the global +# "Flip Pose" checkbox. class POSELIB_OT_apply_pose_asset_for_keymap(Operator): bl_idname = "poselib.apply_pose_asset_for_keymap" bl_options = {"REGISTER", "UNDO"}