diff options
author | Antonioya <blendergit@gmail.com> | 2019-06-25 14:59:59 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-06-25 15:00:34 +0300 |
commit | c186cfe419baa6f715544353b0861c374150b87b (patch) | |
tree | b8b57da7414a9dd127c507cb89fd816b6817348b /source/blender/editors/include/ED_gpencil.h | |
parent | 30bf48c9caee40ce457d58b5bfe7fc398b7e9891 (diff) |
GPencil: Add Lattice modifier when use Ctrl+P to Lattice Deform
When parent a Grease Pencil object to Lattice, automatically a Lattice modifier is added.
Diffstat (limited to 'source/blender/editors/include/ED_gpencil.h')
-rw-r--r-- | source/blender/editors/include/ED_gpencil.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index 6af8197aa8f..73e239f0d33 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -187,6 +187,12 @@ bool ED_gpencil_add_armature_weights(const struct bContext *C, struct Object *ob_arm, int mode); +/* Add Lattice modifier using Parent operator */ +bool ED_gpencil_add_lattice_modifier(const struct bContext *C, + struct ReportList *reports, + struct Object *ob, + struct Object *ob_latt); + /* keep this aligned with gpencil_armature enum */ #define GP_PAR_ARMATURE_NAME 0 #define GP_PAR_ARMATURE_AUTO 1 |