Image Empties: More visibility settings
[blender.git] / source / blender / makesdna / DNA_object_types.h
index d19c29574b67867901601b9990534d6088d269eb..fca6a8767bed6c49e8e38c76086266329eae5b0e 100644 (file)
@@ -296,6 +296,9 @@ typedef struct Object {
 
        float ima_ofs[2];               /* offset for image empties */
        ImageUser *iuser;               /* must be non-null when object is an empty image */
+       char empty_image_visibility_flag;
+       char empty_image_depth;
+       char pad11[6];
 
        ListBase lodlevels;             /* contains data for levels of detail */
        LodLevel *currentlod;
@@ -596,6 +599,17 @@ enum {
        OB_DUPLI_FLAG_RENDER   = 1 << 1,
 };
 
+/* ob->empty_image_depth */
+#define OB_EMPTY_IMAGE_DEPTH_DEFAULT 0
+#define OB_EMPTY_IMAGE_DEPTH_FRONT 1
+#define OB_EMPTY_IMAGE_DEPTH_BACK 2
+
+/* ob->empty_image_visibility_flag */
+enum {
+       OB_EMPTY_IMAGE_VISIBLE_PERSPECTIVE  = 1 << 0,
+       OB_EMPTY_IMAGE_VISIBLE_ORTHOGRAPHIC = 1 << 1,
+};
+
 #define MAX_DUPLI_RECUR 8
 
 #ifdef __cplusplus