diff options
author | Andre Susano Pinto <andresusanopinto@gmail.com> | 2008-11-04 02:17:36 +0300 |
---|---|---|
committer | Andre Susano Pinto <andresusanopinto@gmail.com> | 2008-11-04 02:17:36 +0300 |
commit | ec462b8cead8766c9b12a962d460818d68788015 (patch) | |
tree | 5ecf5eea388d649774f1a07bbef304badaaa6281 /source/blender/blenkernel/intern/lattice.c | |
parent | 6cc1466c61405721f5a7491914c722a2d2b10274 (diff) |
Added Lattice vgroup support to shrinkwrap and simple deform modifier.
Diffstat (limited to 'source/blender/blenkernel/intern/lattice.c')
-rw-r--r-- | source/blender/blenkernel/intern/lattice.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c index 54915058bab..2737cac149e 100644 --- a/source/blender/blenkernel/intern/lattice.c +++ b/source/blender/blenkernel/intern/lattice.c @@ -928,3 +928,15 @@ void lattice_calc_modifiers(Object *ob) BLI_addtail(&ob->disp, dl); } } + +struct MDeform* lattice_get_deform_verts(struct Object *oblatt) +{ + if(oblatt->type == OB_LATTICE) + { + Lattice *lt = (oblatt==G.obedit)?editLatt:(Lattice*)oblatt->data; + return lt->dvert; + } + + return NULL; +} + |