Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_object_types.h
| Show First 20 Lines • Show All 361 Lines • ▼ Show 20 Lines | enum { | ||||
| OB_SPEAKER = 12, | OB_SPEAKER = 12, | ||||
| OB_LIGHTPROBE = 13, | OB_LIGHTPROBE = 13, | ||||
| /* OB_WAVE = 21, */ | /* OB_WAVE = 21, */ | ||||
| OB_LATTICE = 22, | OB_LATTICE = 22, | ||||
| /* 23 and 24 are for life and sector (old file compat.) */ | /* 23 and 24 are for life and sector (old file compat.) */ | ||||
| OB_ARMATURE = 25, | OB_ARMATURE = 25, | ||||
| /* Grease Pencil object used in 3D view but not used for annotation in 2D */ | |||||
| OB_GPENCIL = 26, | |||||
| }; | }; | ||||
| /* ObjectDisplay.flag */ | /* ObjectDisplay.flag */ | ||||
| enum { | enum { | ||||
| OB_SHOW_SHADOW = (1 << 0), | OB_SHOW_SHADOW = (1 << 0), | ||||
| }; | }; | ||||
| /* check if the object type supports materials */ | /* check if the object type supports materials */ | ||||
| #define OB_TYPE_SUPPORT_MATERIAL(_type) \ | #define OB_TYPE_SUPPORT_MATERIAL(_type) \ | ||||
| ((_type) >= OB_MESH && (_type) <= OB_MBALL) | (((_type) >= OB_MESH && (_type) <= OB_MBALL) || ((_type) == OB_GPENCIL)) | ||||
| #define OB_TYPE_SUPPORT_VGROUP(_type) \ | #define OB_TYPE_SUPPORT_VGROUP(_type) \ | ||||
| (ELEM(_type, OB_MESH, OB_LATTICE)) | (ELEM(_type, OB_MESH, OB_LATTICE, OB_GPENCIL)) | ||||
| #define OB_TYPE_SUPPORT_EDITMODE(_type) \ | #define OB_TYPE_SUPPORT_EDITMODE(_type) \ | ||||
| (ELEM(_type, OB_MESH, OB_FONT, OB_CURVE, OB_SURF, OB_MBALL, OB_LATTICE, OB_ARMATURE)) | (ELEM(_type, OB_MESH, OB_FONT, OB_CURVE, OB_SURF, OB_MBALL, OB_LATTICE, OB_ARMATURE)) | ||||
| #define OB_TYPE_SUPPORT_PARVERT(_type) \ | #define OB_TYPE_SUPPORT_PARVERT(_type) \ | ||||
| (ELEM(_type, OB_MESH, OB_SURF, OB_CURVE, OB_LATTICE)) | (ELEM(_type, OB_MESH, OB_SURF, OB_CURVE, OB_LATTICE)) | ||||
| /** Matches #OB_TYPE_SUPPORT_EDITMODE. */ | /** Matches #OB_TYPE_SUPPORT_EDITMODE. */ | ||||
| #define OB_DATA_SUPPORT_EDITMODE(_type) \ | #define OB_DATA_SUPPORT_EDITMODE(_type) \ | ||||
| (ELEM(_type, ID_ME, ID_CU, ID_MB, ID_LT, ID_AR)) | (ELEM(_type, ID_ME, ID_CU, ID_MB, ID_LT, ID_AR)) | ||||
| /* is this ID type used as object data */ | /* is this ID type used as object data */ | ||||
| #define OB_DATA_SUPPORT_ID(_id_type) \ | #define OB_DATA_SUPPORT_ID(_id_type) \ | ||||
| (ELEM(_id_type, ID_ME, ID_CU, ID_MB, ID_LA, ID_SPK, ID_LP, ID_CA, ID_LT, ID_AR)) | (ELEM(_id_type, ID_ME, ID_CU, ID_MB, ID_LA, ID_SPK, ID_LP, ID_CA, ID_LT, ID_GD, ID_AR)) | ||||
| #define OB_DATA_SUPPORT_ID_CASE \ | #define OB_DATA_SUPPORT_ID_CASE \ | ||||
| ID_ME: case ID_CU: case ID_MB: case ID_LA: case ID_SPK: case ID_LP: case ID_CA: case ID_LT: case ID_AR | ID_ME: case ID_CU: case ID_MB: case ID_LA: case ID_SPK: case ID_LP: case ID_CA: case ID_LT: case ID_GD: case ID_AR | ||||
| /* partype: first 4 bits: type */ | /* partype: first 4 bits: type */ | ||||
| enum { | enum { | ||||
| PARTYPE = (1 << 4) - 1, | PARTYPE = (1 << 4) - 1, | ||||
| PAROBJECT = 0, | PAROBJECT = 0, | ||||
| #ifdef DNA_DEPRECATED | #ifdef DNA_DEPRECATED | ||||
| PARCURVE = 1, /* Deprecated. */ | PARCURVE = 1, /* Deprecated. */ | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | enum { | ||||
| OB_CIRCLE = 3, | OB_CIRCLE = 3, | ||||
| OB_SINGLE_ARROW = 4, | OB_SINGLE_ARROW = 4, | ||||
| OB_CUBE = 5, | OB_CUBE = 5, | ||||
| OB_EMPTY_SPHERE = 6, | OB_EMPTY_SPHERE = 6, | ||||
| OB_EMPTY_CONE = 7, | OB_EMPTY_CONE = 7, | ||||
| OB_EMPTY_IMAGE = 8, | OB_EMPTY_IMAGE = 8, | ||||
| }; | }; | ||||
| /* gpencil add types */ | |||||
| enum { | |||||
| GP_EMPTY = 0, | |||||
| GP_MONKEY = 1 | |||||
| }; | |||||
| /* boundtype */ | /* boundtype */ | ||||
| enum { | enum { | ||||
| OB_BOUND_BOX = 0, | OB_BOUND_BOX = 0, | ||||
| OB_BOUND_SPHERE = 1, | OB_BOUND_SPHERE = 1, | ||||
| OB_BOUND_CYLINDER = 2, | OB_BOUND_CYLINDER = 2, | ||||
| OB_BOUND_CONE = 3, | OB_BOUND_CONE = 3, | ||||
| OB_BOUND_TRIANGLE_MESH = 4, | OB_BOUND_TRIANGLE_MESH = 4, | ||||
| OB_BOUND_CONVEX_HULL = 5, | OB_BOUND_CONVEX_HULL = 5, | ||||
| ▲ Show 20 Lines • Show All 115 Lines • Show Last 20 Lines | |||||