Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_ID.h
| Show First 20 Lines • Show All 461 Lines • ▼ Show 20 Lines | #define ID_NEW_SET(_id, _idn) \ | ||||
| ((ID *)(_id))->newid->tag |= LIB_TAG_NEW, \ | ((ID *)(_id))->newid->tag |= LIB_TAG_NEW, \ | ||||
| (void *)((ID *)(_id))->newid) | (void *)((ID *)(_id))->newid) | ||||
| #define ID_NEW_REMAP(a) \ | #define ID_NEW_REMAP(a) \ | ||||
| if ((a) && (a)->id.newid) \ | if ((a) && (a)->id.newid) \ | ||||
| (a) = (void *)(a)->id.newid | (a) = (void *)(a)->id.newid | ||||
| /* id->flag (persitent). */ | /* id->flag (persitent). */ | ||||
| enum { | enum { | ||||
| /* Don't delete the datablock even if unused. */ | |||||
| LIB_FAKEUSER = 1 << 9, | LIB_FAKEUSER = 1 << 9, | ||||
| /* The datablock structure is a sub-object of a different one. | |||||
| * Direct persistent references are not allowed. */ | |||||
| LIB_PRIVATE_DATA = 1 << 10, | |||||
| }; | }; | ||||
| /** | /** | ||||
| * id->tag (runtime-only). | * id->tag (runtime-only). | ||||
| * | * | ||||
| * Those flags belong to three different categories, | * Those flags belong to three different categories, | ||||
| * which have different expected handling in code: | * which have different expected handling in code: | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines | |||||