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/editobject.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/editobject.c')
-rw-r--r-- | source/blender/src/editobject.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 27c562b3aa9..6b58e260e2d 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -812,9 +812,7 @@ void clear_parent(void) } if(par) { - if(par->type==OB_LATTICE) makeDispList(base->object); - if(par->type==OB_IKA) makeDispList(base->object); - if(par->type==OB_ARMATURE) makeDispList(base->object); + makeDispList(base->object); // just always..., checks are not available well (ton) } } base= base->next; @@ -2865,9 +2863,13 @@ void apply_object() if(ob==0) return; if(ob->transflag & OB_DUPLI) make_duplilist_real(); - else if(ob->parent && ob->parent->type==OB_LATTICE) apply_lattice(); - - return; + else { + if(okee("Apply deformation")==0) return; + object_apply_deform(ob); + allqueue(REDRAWVIEW3D, 0); + + return; + } } if(okee("Apply size and rotation")==0) return; |