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.
This commit is contained in:
2004-09-28 16:18:22 +00:00
parent fc0c3a084d
commit 5ac0d4fd26
9 changed files with 56 additions and 45 deletions

View File

@@ -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;