diff options
author | Ton Roosendaal <ton@blender.org> | 2004-09-28 20:18:22 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-09-28 20:18:22 +0400 |
commit | 5ac0d4fd26e9b670d83b8e9431707f9260c66bc6 (patch) | |
tree | 928cc78886d864577dcf3279ad7d400621797edd /source/blender/src/editlattice.c | |
parent | fc0c3a084dd20fd350ba4fe2c9e5f4d3889839f6 (diff) |
Cleaned the apply deform code in Blender. Now also using the modifier code.
Right now, it works for Meshes (all deformers including Curve) and for
Curve/Surfaces (only hooks).
More follows.
Diffstat (limited to 'source/blender/src/editlattice.c')
-rw-r--r-- | source/blender/src/editlattice.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/source/blender/src/editlattice.c b/source/blender/src/editlattice.c index 8aebfdfedc5..18bed249da4 100644 --- a/source/blender/src/editlattice.c +++ b/source/blender/src/editlattice.c @@ -76,35 +76,8 @@ #include "BKE_armature.h" -void apply_lattice(void) -{ - Base *base; - Object *par; - - if(okee("Apply lattice deformation")==0) return; - - base= FIRSTBASE; - while(base) { - if TESTBASELIB(base) { - if( (par= base->object->parent) ) { - if(par->type==OB_LATTICE) { - object_apply_deform(base->object); - - base->object->parent= 0; - } - } - } - base= base->next; - } - - allqueue(REDRAWVIEW3D, 0); -} - /* ***************************** */ - - - void free_editLatt(void) { if(editLatt) { |