Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_ID.h
| Show First 20 Lines • Show All 520 Lines • ▼ Show 20 Lines | #define ID_IS_OVERRIDE_LIBRARY(_id) \ | ||||
| (ID_IS_OVERRIDE_LIBRARY_REAL(_id) || ID_IS_OVERRIDE_LIBRARY_VIRTUAL(_id)) | (ID_IS_OVERRIDE_LIBRARY_REAL(_id) || ID_IS_OVERRIDE_LIBRARY_VIRTUAL(_id)) | ||||
| #define ID_IS_OVERRIDE_LIBRARY_TEMPLATE(_id) \ | #define ID_IS_OVERRIDE_LIBRARY_TEMPLATE(_id) \ | ||||
| (((ID *)(_id))->override_library != NULL && ((ID *)(_id))->override_library->reference == NULL) | (((ID *)(_id))->override_library != NULL && ((ID *)(_id))->override_library->reference == NULL) | ||||
| #define ID_IS_ASSET(_id) (((const ID *)(_id))->asset_data != NULL) | #define ID_IS_ASSET(_id) (((const ID *)(_id))->asset_data != NULL) | ||||
| /* Check whether datablock type is covered by copy-on-write. */ | /* Check whether datablock type is covered by copy-on-write. */ | ||||
| #define ID_TYPE_IS_COW(_id_type) (!ELEM(_id_type, ID_BR, ID_PAL, ID_IM)) | #define ID_TYPE_IS_COW(_id_type) \ | ||||
| (!ELEM(_id_type, ID_LI, ID_IP, ID_SCR, ID_VF, ID_BR, ID_WM, ID_PAL, ID_PC, ID_WS, ID_IM)) | |||||
| #ifdef GS | #ifdef GS | ||||
| # undef GS | # undef GS | ||||
| #endif | #endif | ||||
| #define GS(a) \ | #define GS(a) \ | ||||
| (CHECK_TYPE_ANY(a, char *, const char *, char[66], const char[66]), \ | (CHECK_TYPE_ANY(a, char *, const char *, char[66], const char[66]), \ | ||||
| (ID_Type)(*((const short *)(a)))) | (ID_Type)(*((const short *)(a)))) | ||||
| ▲ Show 20 Lines • Show All 311 Lines • Show Last 20 Lines | |||||