diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-08-15 14:30:53 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-08-15 14:30:53 +0400 |
commit | 2abd79b491c024eee8ad460815486fc051aefbf4 (patch) | |
tree | b9579c776265c21f3fd8486f9a830dc6a26cf82a /source/blender/makesdna | |
parent | 91cd2d8138fee78dbc1ea4ef05ce7517cc4a5909 (diff) |
- 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.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_lattice_types.h | 4 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_object_force.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_lattice_types.h b/source/blender/makesdna/DNA_lattice_types.h index fc71982fb0e..3d77e7feb02 100644 --- a/source/blender/makesdna/DNA_lattice_types.h +++ b/source/blender/makesdna/DNA_lattice_types.h @@ -42,14 +42,16 @@ typedef struct Lattice { ID id; short pntsu, pntsv, pntsw, flag; + short opntsu, opntsv, opntsw, pad2; char typeu, typev, typew, type; int pad; + float fu, fv, fw, du, dv, dw; + struct BPoint *def; struct Ipo *ipo; struct Key *key; - } Lattice; /* ***************** LATTICE ********************* */ diff --git a/source/blender/makesdna/DNA_object_force.h b/source/blender/makesdna/DNA_object_force.h index 334d4b44aa6..3396c59a53a 100644 --- a/source/blender/makesdna/DNA_object_force.h +++ b/source/blender/makesdna/DNA_object_force.h @@ -118,6 +118,7 @@ typedef struct SoftBody { #define OB_SB_REDO 32 #define OB_SB_BAKESET 64 #define OB_SB_BAKEDO 128 +#define OB_SB_RESET 256 #ifdef __cplusplus } |