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, | |||||
| }; | }; | ||||
| /* 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) | ||||
| #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. | |||||
| 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. | |||||
| OB_MODE_TEXTURE_PAINT = 1 << 4, | OB_MODE_TEXTURE_PAINT = 1 << 4, | ||||
| OB_MODE_PARTICLE_EDIT = 1 << 5, | OB_MODE_PARTICLE_EDIT = 1 << 5, | ||||
| OB_MODE_POSE = 1 << 6, | OB_MODE_POSE = 1 << 6, | ||||
| OB_MODE_GPENCIL = 1 << 7, /* NOTE: Just a dummy to make the UI nicer */ | OB_MODE_GPENCIL_EDIT = 1 << 7, | ||||
| OB_MODE_GPENCIL_PAINT = 1 << 8, | |||||
| OB_MODE_GPENCIL_SCULPT = 1 << 9, | |||||
| OB_MODE_GPENCIL_WEIGHT = 1 << 10, | |||||
| } eObjectMode; | } eObjectMode; | ||||
| /* any mode where the brush system is used */ | /* any mode where the brush system is used */ | ||||
| Context not available. | |||||