Skip to content
Snippets Groups Projects
Commit bf49eeaa authored by Campbell Barton's avatar Campbell Barton
Browse files

pose_library: minor changes for shortcuts to show in menus

template_asset_view operators for the pose library now match the menu
items.

- Set 'flipped' to false for the activate operator.

- Remove 'release_confirmed' assignment for the drag operator,
  this is now set based on the event that activated it.

Part of fix for T103267.
parent 5a774a6d
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,10 @@ class VIEW3D_PT_pose_library(PoseLibraryPanel, Panel): ...@@ -50,7 +50,10 @@ class VIEW3D_PT_pose_library(PoseLibraryPanel, Panel):
activate_operator="poselib.apply_pose_asset", activate_operator="poselib.apply_pose_asset",
drag_operator="poselib.blend_pose_asset", drag_operator="poselib.blend_pose_asset",
) )
drag_op_props.release_confirm = True
# Make sure operators properties match those used in
# `pose_library_list_item_context_menu` so shortcuts show in menus (see T103267).
activate_op_props.flipped = False
def pose_library_list_item_context_menu(self: UIList, context: Context) -> None: def pose_library_list_item_context_menu(self: UIList, context: Context) -> None:
...@@ -79,6 +82,7 @@ def pose_library_list_item_context_menu(self: UIList, context: Context) -> None: ...@@ -79,6 +82,7 @@ def pose_library_list_item_context_menu(self: UIList, context: Context) -> None:
layout.separator() layout.separator()
# Make sure these operator properties match those used in `VIEW3D_PT_pose_library`.
layout.operator("poselib.apply_pose_asset", text="Apply Pose").flipped = False layout.operator("poselib.apply_pose_asset", text="Apply Pose").flipped = False
layout.operator("poselib.apply_pose_asset", text="Apply Pose Flipped").flipped = True layout.operator("poselib.apply_pose_asset", text="Apply Pose Flipped").flipped = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment