diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-04-17 23:11:56 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-04-17 23:11:56 +0300 |
commit | 3f762dd76409a285bc0f40df0ff8a6bae6d065b0 (patch) | |
tree | 9fbaf7813ea25c34c3dfa0a76d876dec30992f05 /source/blender/makesdna | |
parent | dd8d55b31ac693aed0510551d080bbaca9c3cb7e (diff) |
Workbench: clean up the viewport shading code
- added the drawtype_solid, drawtype_wireframe, drawtype_texture to
View3D
- enabled workbench panels for important render engines
- merged workbench_materials to solid_flat_mode. All draw modes will get
its own fast implementation in the workbench
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_object_types.h | 6 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index bb17b10b299..e292e1a8456 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -446,6 +446,12 @@ enum { OB_PAINT = 100, /* temporary used in draw code */ }; +enum { + OB_LIGHTING_FLAT = 0, + OB_LIGHTING_STUDIO = 1, + OB_LIGHTING_SCENE = 2 +}; + /* dtx: flags (short) */ enum { OB_DRAWBOUNDOX = 1 << 0, diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index cc0389ec568..70d0d8c9d4d 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -238,8 +238,12 @@ typedef struct View3D { * Runtime-only, set in the rendered viewport toggle operator. */ short prev_drawtype; - short pad1; - float pad2; + /* drawtype subtype (visibility) used when drawtype == OB_WIRE */ + short drawtype_wireframe; + /* drawtype subtype (lighting) used when drawtype == OB_SOLID */ + short drawtype_solid; + /* drawtype subtype (lighting) used when drawtype == OB_TEXTURE */ + short drawtype_texture; View3DDebug debug; } View3D; |