From 9a646b6a2060dbc3b2f4031f7933842c597d0716 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Thu, 30 Aug 2018 12:22:55 +0200 Subject: GP: New Armature modifier and tools to handle weights This commit adds a new armature modifier for grease pencil. The deformations are done reusing the mesh deform routines. There is also a new operator in weight paint mode to help the artist to generate weights base on armatures. This operator is required because 2D animation workflow is not equal to meshes when parent an object to armatures. In the drawing engine has been added the option to handle the Fade object parameter used in armatures to see the strokes while move the bones. When rename bones, all related data of grease pencil is renamed too. This not only affect new armature code, but also layers parented and hook modifiers. Thanks @aligorith for his review and help. --- source/blender/blenkernel/BKE_lattice.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_lattice.h') diff --git a/source/blender/blenkernel/BKE_lattice.h b/source/blender/blenkernel/BKE_lattice.h index e98839e3dbc..2ca6a35eec5 100644 --- a/source/blender/blenkernel/BKE_lattice.h +++ b/source/blender/blenkernel/BKE_lattice.h @@ -44,6 +44,7 @@ struct Scene; struct BPoint; struct MDeformVert; struct Depsgraph; +struct bGPDstroke; void BKE_lattice_resize(struct Lattice *lt, int u, int v, int w, struct Object *ltOb); void BKE_lattice_init(struct Lattice *lt); @@ -73,7 +74,8 @@ void lattice_deform_verts(struct Object *laOb, struct Object *target, void armature_deform_verts(struct Object *armOb, struct Object *target, const struct Mesh *mesh, float (*vertexCos)[3], float (*defMats)[3][3], int numVerts, int deformflag, - float (*prevCos)[3], const char *defgrp_name); + float (*prevCos)[3], const char *defgrp_name, + struct bGPDstroke *gps); float (*BKE_lattice_vertexcos_get(struct Object *ob, int *r_numVerts))[3]; void BKE_lattice_vertexcos_apply(struct Object *ob, float (*vertexCos)[3]); -- cgit v1.2.3