Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_operator_api.h
| Context not available. | |||||
| #define BMO_elem_flag_toggle(bm, ele, oflag) \ | #define BMO_elem_flag_toggle(bm, ele, oflag) \ | ||||
| _bmo_elem_flag_toggle(bm, (BM_CHECK_TYPE_ELEM_NONCONST(ele), BMO_elem_flag_from_header(&(ele)->head)), oflag) | _bmo_elem_flag_toggle(bm, (BM_CHECK_TYPE_ELEM_NONCONST(ele), BMO_elem_flag_from_header(&(ele)->head)), oflag) | ||||
| /* take care not to instansiate args multiple times */ | /* take care not to instantiate args multiple times */ | ||||
| #ifdef __GNUC___ | #ifdef __GNUC___ | ||||
| #define _BMO_CAST_V_CONST(e) ({ typeof(e) _e = e; \ | #define _BMO_CAST_V_CONST(e) ({ typeof(e) _e = e; \ | ||||
| (BM_CHECK_TYPE_VERT(_e), BLI_assert(((const BMHeader *)_e)->htype == BM_VERT), (const BMVert_OFlag *)_e); }) | (BM_CHECK_TYPE_VERT(_e), BLI_assert(((const BMHeader *)_e)->htype == BM_VERT), (const BMVert_OFlag *)_e); }) | ||||
| Context not available. | |||||
| /* normally store pointers to object, scene, | /* normally store pointers to object, scene, | ||||
| * _never_ store arrays corresponding to mesh elements with this */ | * _never_ store arrays corresponding to mesh elements with this */ | ||||
| BMO_OP_SLOT_PTR = 4, /* requres subtype BMO_OP_SLOT_SUBTYPE_PTR_xxx */ | BMO_OP_SLOT_PTR = 4, /* requires subtype BMO_OP_SLOT_SUBTYPE_PTR_xxx */ | ||||
| BMO_OP_SLOT_MAT = 5, | BMO_OP_SLOT_MAT = 5, | ||||
| BMO_OP_SLOT_VEC = 8, | BMO_OP_SLOT_VEC = 8, | ||||
| Context not available. | |||||
| * | * | ||||
| * it's very important this remain a power of two */ | * it's very important this remain a power of two */ | ||||
| BMO_OP_SLOT_ELEMENT_BUF = 9, /* list of verts/edges/faces */ | BMO_OP_SLOT_ELEMENT_BUF = 9, /* list of verts/edges/faces */ | ||||
| BMO_OP_SLOT_MAPPING = 10 /* simple hash map, requres subtype BMO_OP_SLOT_SUBTYPE_MAP_xxx */ | BMO_OP_SLOT_MAPPING = 10 /* simple hash map, requires subtype BMO_OP_SLOT_SUBTYPE_MAP_xxx */ | ||||
| } eBMOpSlotType; | } eBMOpSlotType; | ||||
| #define BMO_OP_SLOT_TOTAL_TYPES 11 | #define BMO_OP_SLOT_TOTAL_TYPES 11 | ||||
| Context not available. | |||||