From c5fc861172879102034129ecbe653e91eeff5caf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 20 Mar 2019 16:33:17 +0100 Subject: Fix T58550 Dragged in images dont overlap properly This patch adds a new "Use Alpha" option on image empties to avoid ordering issue of reference images. If ordering is not important, "Use Alpha" can be enabled to provide transparency and alpha blending support. --- source/blender/makesdna/DNA_object_types.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (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 136acb9dc1c..e97ae722457 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -372,7 +372,8 @@ typedef struct Object { ImageUser *iuser; char empty_image_visibility_flag; char empty_image_depth; - char _pad8[2]; + char empty_image_flag; + char _pad8[1]; int select_id; @@ -670,6 +671,11 @@ enum { OB_EMPTY_IMAGE_HIDE_FRONT = 1 << 3, }; +/** #Object.empty_image_flag */ +enum { + OB_EMPTY_IMAGE_USE_ALPHA_BLEND = 1 << 0, +}; + #define MAX_DUPLI_RECUR 8 #ifdef __cplusplus -- cgit v1.2.3