diff options
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index a0516590d43..6841393ab98 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -212,6 +212,9 @@ typedef struct View3D { struct ListBase afterdraw_xray; struct ListBase afterdraw_xraytransp; + /* draw after scene, does not need depth info, so different than xray */ + struct ListBase afterdraw_nodepth; + /* drawflags, denoting state */ char zbuf, transp, xray; @@ -291,6 +294,7 @@ typedef struct View3D { ((view >= RV3D_VIEW_FRONT) && (view <= RV3D_VIEW_BOTTOM)) /* View3d->flag2 (short) */ +#define V3D_WIRE_COLOR_NOCUSTOM (1 << 1) #define V3D_RENDER_OVERRIDE (1 << 2) #define V3D_SOLID_TEX (1 << 3) #define V3D_SHOW_GPENCIL (1 << 4) @@ -309,6 +313,7 @@ typedef struct View3D { /* View3d->flag3 (short) */ #define V3D_SHOW_WORLD (1 << 0) +#define V3D_HIDE_MOTIONPATHS (1 << 1) /* View3D->around */ #define V3D_CENTER 0 @@ -348,9 +353,10 @@ typedef struct View3D { /* View3d->twflag */ /* USE = user setting, DRAW = based on selection */ -#define V3D_USE_MANIPULATOR 1 -#define V3D_DRAW_MANIPULATOR 2 -/* #define V3D_CALC_MANIPULATOR 4 */ /*UNUSED*/ +#define V3D_USE_MANIPULATOR (1 << 0) +#define V3D_DRAW_MANIPULATOR (1 << 1) +#define V3D_3D_WIDGETS (1 << 2) +#define V3D_SHADED_WIDGETS (1 << 3) /* BGPic->flag */ /* may want to use 1 for select ? */ @@ -371,6 +377,13 @@ enum { #define V3D_BGPIC_EXPANDED (V3D_BGPIC_EXPANDED | V3D_BGPIC_CAMERACLIP) +#define V3D_IS_WIRECOLOR(scene, v3d) \ + (((v3d)->drawtype <= OB_SOLID) && \ + (((v3d)->flag2 & V3D_WIRE_COLOR_NOCUSTOM) == 0)) + +#define V3D_IS_WIRECOLOR_OBJECT(scene, v3d, ob) \ + V3D_IS_WIRECOLOR(scene, v3d) && ((ob)->dtx & OB_DRAW_WIRECOLOR) + /* BGPic->source */ /* may want to use 1 for select ?*/ #define V3D_BGPIC_IMAGE 0 |