diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-30 10:07:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-30 10:07:26 +0400 |
commit | 03136f06807bff9c08ac7dc6584fb5cdb7bffa51 (patch) | |
tree | 5f08f7f3368ce7856f796774cad4b6b845ef6b5d /source/blender/makesdna | |
parent | 766307e3119fb805c7050a7c1d363ec26e564a21 (diff) |
mask object hide/reveal - access from H/Alt+H/Shift+H and eye icon in listview.
added alpha setting though its not used for rendering yet.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_mask_types.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_mask_types.h b/source/blender/makesdna/DNA_mask_types.h index cf3f5e77544..65707725a53 100644 --- a/source/blender/makesdna/DNA_mask_types.h +++ b/source/blender/makesdna/DNA_mask_types.h @@ -44,7 +44,7 @@ typedef struct Mask { ID id; struct AnimData *adt; ListBase maskobjs; /* mask objects */ - int act_maskobj; /* index of active mask object */ + int act_maskobj; /* index of active mask object (-1 == None) */ int tot_maskobj; /* total number of mask objects */ } Mask; @@ -107,12 +107,18 @@ typedef struct MaskObject { struct MaskSpline *act_spline; /* active spline */ struct MaskSplinePoint *act_point; /* active point */ + + float alpha; + //char flag; /* not used yet */ + char restrictflag; /* matching 'Object' flag of the same name - eventually use in the outliner */ + char pad[3]; } MaskObject; /* MaskParent->flag */ #define MASK_PARENT_ACTIVE (1 << 0) /* MaskSpline->flag */ +/* reserve (1 << 0) for SELECT */ #define MASK_SPLINE_CYCLIC (1 << 1) /* MaskSpline->weight_interp */ @@ -121,4 +127,9 @@ typedef struct MaskObject { #define MASK_OBJECT_SHAPE_ELEM_SIZE 8 /* 3x 2D points + weight + radius == 8 */ +/* ob->restrictflag */ +#define MASK_RESTRICT_VIEW 1 +#define MASK_RESTRICT_SELECT 2 +#define MASK_RESTRICT_RENDER 4 + #endif // __DNA_MASK_TYPES_H__ |