Page MenuHome

Add a 'Apply and Delete All' operation to shapekeys.
ClosedPublic

Authored by Bastien Montagne (mont29) on Jul 13 2022, 10:19 AM.

Details

Summary

Adds a new option to the 'Delete ShpaKeys' operator, which first applies
the current mix to the object data, before removing all shapekeys.

TODO: de-activate that option when 'All' is not true, since it only
applies when deleting all shapekeys, not a single one.

Request from @Julien Kaspar (JulienKaspar) from Blender studio.

Diff Detail

Repository
rB Blender

Event Timeline

Bastien Montagne (mont29) requested review of this revision.Jul 13 2022, 10:19 AM
Bastien Montagne (mont29) created this revision.

This works great. I'd just propose to change some of the naming and add a descriptive tooltip.

I don't think we need to say "Apply & Delete". Apply always implies that the non-destructive element is deleted and becomes the new default (modifier, constraints, transforms).
We could name the operator just "Apply All Shape Keys".

It generally applies the visible result of the shapekeys. So if the toggle for "Shape Key Lock" is used, then it will only apply that active shapekey.
Disabled Shape Keys are also ignored. I'd say this works as expected then.
I would suggest that the tooltip says something like: "Apply visible shape keys and delete all"

Update from feedback.

This revision is now accepted and ready to land.Jul 14 2022, 4:26 PM