From 2abd79b491c024eee8ad460815486fc051aefbf4 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 15 Aug 2005 10:30:53 +0000 Subject: - 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. --- source/blender/blenkernel/BKE_curve.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/blenkernel/BKE_curve.h') diff --git a/source/blender/blenkernel/BKE_curve.h b/source/blender/blenkernel/BKE_curve.h index 4effdb6af8a..03a7cfe0096 100644 --- a/source/blender/blenkernel/BKE_curve.h +++ b/source/blender/blenkernel/BKE_curve.h @@ -86,5 +86,8 @@ void sethandlesNurb(short code); void swapdata(void *adr1, void *adr2, int len); void switchdirectionNurb( struct Nurb *nu); +float (*curve_getVertexCos(struct Curve *cu, struct ListBase *lb, int *numVerts_r))[3]; +void curve_applyVertexCos(struct Curve *cu, struct ListBase *lb, float (*vertexCos)[3]); + #endif -- cgit v1.2.3