- readded DL_VERTS type to store lattice deformed verts

- new feature, twiddled with lattice resizing to try to maintain
   existing vertex changes... much nicer than just resetting the
   lattice if you decide you need more detail in the lattice.
 - modifiers work with lattices now. yes, that does mean you
   can make a chain of lattices effecting each other 8 miles
   long.
 - some cleanup of softbody code, was rather splintered and call
   path was twisted and confusing. reworked main object step
   routine to do things in a more obvious and consistent manner
   and without duplicate code
 - added ob->softflag OB_SB_RESET instead of sbObjectReset
   call
 - modifier changes reset softbody now
 - moved curve_getVertexCos/curve_applyVertexCos into curve.c
 - update curve modifier eval to work with virtual modifiers
 - update modifier apply to work with curves/surfs
 - update make parent to also recalc object data

NOTE: Although you can turn SB on for curve/font objects at the
moment it doesn't really work because they call deform in
multiple steps and this confuses SB. Not sure how to deal with
atm.
This commit is contained in:
2005-08-15 10:30:53 +00:00
parent 91cd2d8138
commit 2abd79b491
21 changed files with 546 additions and 616 deletions

View File

@@ -1311,7 +1311,7 @@ void make_parent(void)
}
else {
base->object->recalc |= OB_RECALC_OB;
base->object->recalc |= OB_RECALC_OB|OB_RECALC_DATA;
/* the ifs below are horrible code (ton) */
@@ -1363,7 +1363,6 @@ void make_parent(void)
if(par->type==OB_ARMATURE && mode == PARSKEL){
verify_defgroups(base->object);
base->object->recalc |= OB_RECALC_DATA;
}
}
}
@@ -1523,9 +1522,9 @@ void exit_editmode(int freedata) /* freedata==0 at render, 1= freedata, 2= do un
if(sb->keys) {
if( okee("Erase Baked SoftBody") )
sbObjectToSoftbody(ob, NULL);
sbObjectToSoftbody(ob);
}
else sbObjectToSoftbody(ob, NULL);
else sbObjectToSoftbody(ob);
}
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);