Merge branch 'master' into blender2.8
[blender.git] / source / blender / makesdna / DNA_ID.h
index 5eb7afb4e004c080a2c5caad041db1c83b9ac3c3..60701e96edb812ce40ef4c29b75a13a9e8dbe0cb 100644 (file)
@@ -268,6 +268,8 @@ typedef struct PreviewImage {
 
 #define ID_MISSING(_id) (((_id)->tag & LIB_TAG_MISSING) != 0)
 
+#define ID_IS_LINKED_DATABLOCK(_id) (((ID *)(_id))->lib != NULL)
+
 #ifdef GS
 #  undef GS
 #endif