Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Susano Pinto <andresusanopinto@gmail.com>2008-11-04 02:17:36 +0300
committerAndre Susano Pinto <andresusanopinto@gmail.com>2008-11-04 02:17:36 +0300
commitec462b8cead8766c9b12a962d460818d68788015 (patch)
tree5ecf5eea388d649774f1a07bbef304badaaa6281 /source/blender/blenkernel/intern/lattice.c
parent6cc1466c61405721f5a7491914c722a2d2b10274 (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.c12
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;
+}
+