diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-10 00:28:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-10 00:28:08 +0400 |
commit | eabb30a2367808c163a90d658c5be586530098ec (patch) | |
tree | e3d1a20fad111127c3c20c3450b003553b171db5 /source/blender/makesdna/DNA_lattice_types.h | |
parent | 28add50083204e99121c5290242652ccd3fcca9e (diff) |
patch [#35631] Active element for Lattice
by Kevin Mackay (yakca)
Was one of our TODO's from the wiki.
Diffstat (limited to 'source/blender/makesdna/DNA_lattice_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_lattice_types.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_lattice_types.h b/source/blender/makesdna/DNA_lattice_types.h index 1b4bd53151b..500b4ab88c3 100644 --- a/source/blender/makesdna/DNA_lattice_types.h +++ b/source/blender/makesdna/DNA_lattice_types.h @@ -56,8 +56,8 @@ typedef struct Lattice { short pntsu, pntsv, pntsw, flag; short opntsu, opntsv, opntsw, pad2; char typeu, typev, typew, pad3; - int pad; - + int actbp; /* active element index, unset with LT_ACTBP_NONE */ + float fu, fv, fw, du, dv, dw; struct BPoint *def; @@ -85,5 +85,7 @@ typedef struct Lattice { #define LT_INDEX(lt, u, v, w) ((w) * ((lt)->pntsu * (lt)->pntsv) + ((v) * (lt)->pntsu) + (u)) +#define LT_ACTBP_NONE -1 + #endif |