diff options
author | Bastien Montagne <mont29> | 2022-07-20 11:45:23 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-07-20 11:55:08 +0300 |
commit | 92ca920c52b90dd5552fc43582b0a965d7d173bb (patch) | |
tree | b18a15438668905a2844b7da777617852c9e29c1 /source/blender/blenkernel/BKE_key.h | |
parent | ecf4f4a71f1f1a0fecf1944599d408e1e26058f5 (diff) |
Add a 'Apply and Delete All' operation to shapekeys.
Adds a new option to the 'Delete ShpaKeys' operator, which first applies
the current mix to the object data, before removing all shapekeys.
Request from @JulienKaspar from Blender studio.
Reviewed By: JulienKaspar
Differential Revision: https://developer.blender.org/D15443
Diffstat (limited to 'source/blender/blenkernel/BKE_key.h')
-rw-r--r-- | source/blender/blenkernel/BKE_key.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_key.h b/source/blender/blenkernel/BKE_key.h index 676ac6fe37b..37b30d63722 100644 --- a/source/blender/blenkernel/BKE_key.h +++ b/source/blender/blenkernel/BKE_key.h @@ -46,8 +46,11 @@ void key_curve_normal_weights(float t, float data[4], int type); /** * Returns key coordinates (+ tilt) when key applied, NULL otherwise. + * + * \param obdata if given, also update that geometry with the result of the shape keys evaluation. */ -float *BKE_key_evaluate_object_ex(struct Object *ob, int *r_totelem, float *arr, size_t arr_size); +float *BKE_key_evaluate_object_ex( + struct Object *ob, int *r_totelem, float *arr, size_t arr_size, struct ID *obdata); float *BKE_key_evaluate_object(struct Object *ob, int *r_totelem); /** |