diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-31 07:55:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-31 07:55:55 +0400 |
commit | 4e7872ce46e138d0f4e82db9180f9add97b70416 (patch) | |
tree | 28019fb579f066e507bc1bc5a326be43267623db /source/blender/editors/include/ED_transverts.h | |
parent | 0055162b759ef6aa52aa1fc2ec14b646b310b78f (diff) |
Add normal option to ED_transverts
Diffstat (limited to 'source/blender/editors/include/ED_transverts.h')
-rw-r--r-- | source/blender/editors/include/ED_transverts.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/editors/include/ED_transverts.h b/source/blender/editors/include/ED_transverts.h index 53ee508c4ab..9005d55feff 100644 --- a/source/blender/editors/include/ED_transverts.h +++ b/source/blender/editors/include/ED_transverts.h @@ -36,12 +36,14 @@ struct Object; typedef struct TransVert { float *loc; float oldloc[3], maploc[3]; + float normal[3]; int flag; } TransVert; typedef struct TransVertStore { struct TransVert *transverts; int transverts_tot; + int mode; } TransVertStore; void ED_transverts_create_from_obedit(TransVertStore *tvs, struct Object *obedit, const int mode); @@ -59,12 +61,15 @@ enum { /* mode flags: */ enum { - TM_ALL_JOINTS = 1, /* all joints (for bones only) */ - TM_SKIP_HANDLES = 2 /* skip handles when control point is selected (for curves only) */ + TM_ALL_JOINTS = (1 << 0), /* all joints (for bones only) */ + TM_SKIP_HANDLES = (1 << 1), /* skip handles when control point is selected (for curves only) */ + TM_CALC_NORMALS = (1 << 2), /* fill in normals when available */ }; - - /* SELECT == (1 << 0) */ -#define TX_VERT_USE_MAPLOC (1 << 1) +enum { + /* SELECT == (1 << 0) */ + TX_VERT_USE_MAPLOC = (1 << 1), + TX_VERT_USE_NORMAL = (1 << 2), /* avoid nonzero check */ +}; #endif /* __ED_TRANSVERTS_H__ */ |