Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_object_types.h
| Context not available. | |||||
| /* 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 */ | ||||
| Context not available. | |||||
| /* 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) \ | ||||
| Context not available. | |||||
| /* 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 { | ||||
| Context not available. | |||||
| 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, | ||||
| Context not available. | |||||