From d3b80c4734d1cc5ece8d3eca5f95068eaec85e81 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Wed, 9 May 2018 15:13:12 +0200 Subject: T55014: Optionally: objects not cast shadows in workbench --- source/blender/makesdna/DNA_object_types.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source/blender/makesdna/DNA_object_types.h') diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index c5218f85f6a..5139e54b577 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -139,6 +139,10 @@ typedef struct LodLevel { int obhysteresis; } LodLevel; +typedef struct ObjectDisplay { + int flag; +} ObjectDisplay; + typedef struct Object { ID id; struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */ @@ -299,6 +303,10 @@ typedef struct Object { * It has all modifiers applied. */ struct Mesh *mesh_evaluated; + + /* Object Display */ + struct ObjectDisplay display; + int pad9; } Object; /* Warning, this is not used anymore because hooks are now modifiers */ @@ -366,6 +374,11 @@ enum { OB_ARMATURE = 25, }; +/* ObjectDisplay.flag */ +enum { + OB_SHOW_SHADOW = (1 << 0), +}; + /* check if the object type supports materials */ #define OB_TYPE_SUPPORT_MATERIAL(_type) \ ((_type) >= OB_MESH && (_type) <= OB_MBALL) -- cgit v1.2.3