Shape Keys: Options to mirror shape keys in update, join operators

As described in #135095, this adds a "mirror" option to the "Join as
Shapes" and "Update from Objects" operators, and additional menu items
with the option enabled. Like the operators, this is a convenience
feature that's functionally the same as selecting all shape keys with
changed data and running the existing "Flip" operator.

Pull Request: https://projects.blender.org/blender/blender/pulls/144098
This commit is contained in:
Hans Goudey
2025-09-23 22:12:10 +02:00
committed by Hans Goudey
parent 6daf1dd2f2
commit db4d9067d0
6 changed files with 151 additions and 95 deletions

View File

@@ -64,7 +64,9 @@ class MESH_MT_shape_key_context_menu(Menu):
layout.operator("object.shape_key_transfer", text="Copy from Objects")
layout.separator()
layout.operator("object.join_shapes", text="New from Objects")
layout.operator("object.join_shapes", text="New from Objects Flipped").use_mirror = True
layout.operator("object.update_shapes", icon='FILE_REFRESH')
layout.operator("object.update_shapes", text="Update from Objects Flipped").use_mirror = True
layout.separator()
layout.operator("object.shape_key_mirror", icon='ARROW_LEFTRIGHT', text="Flip").use_topology = False
layout.operator("object.shape_key_mirror", text="Flip (Topology)").use_topology = True