diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2020-07-01 17:38:07 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2020-07-08 11:06:57 +0300 |
commit | 01c8aa12a17775cce03106a576f3c498d28131e4 (patch) | |
tree | 0ec11befa4e3444fd94256736ba0f09e0317dc92 /source/blender/editors/include/ED_object.h | |
parent | 7fcb6bc59c85beab36dbfcec91d0cfaf5291f029 (diff) |
Apply Modifier: support applying as shape key and keeping the modifier.
This can be useful to save the result of a cloth simulation as a
shape key without destroying the simulation, so it's possible to
e.g. re-run it to get other shapes, or simply use the new shape
key to start the simulation already in a draped state.
It also makes sense to allow applying as shape key even when the
mesh is shared, because the operation itself just adds a shape
key. To support this, split the apply operator into Apply and
Apply As Shapekey so that they can have different poll callbacks.
Differential Revision: https://developer.blender.org/D8173
Diffstat (limited to 'source/blender/editors/include/ED_object.h')
-rw-r--r-- | source/blender/editors/include/ED_object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index a851eb735b8..5ec4de5d597 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -389,7 +389,8 @@ bool ED_object_modifier_apply(struct Main *bmain, struct Scene *scene, struct Object *ob, struct ModifierData *md, - int mode); + int mode, + bool keep_modifier); int ED_object_modifier_copy(struct ReportList *reports, struct Object *ob, struct ModifierData *md); |