Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_operator_api.h
| Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | |||||
| } BMOpSlot; | } BMOpSlot; | ||||
| /* mainly for use outside bmesh internal code */ | /* mainly for use outside bmesh internal code */ | ||||
| #define BMO_SLOT_AS_BOOL(slot) ((slot)->data.i) | #define BMO_SLOT_AS_BOOL(slot) ((slot)->data.i) | ||||
| #define BMO_SLOT_AS_INT(slot) ((slot)->data.i) | #define BMO_SLOT_AS_INT(slot) ((slot)->data.i) | ||||
| #define BMO_SLOT_AS_FLOAT(slot) ((slot)->data.f) | #define BMO_SLOT_AS_FLOAT(slot) ((slot)->data.f) | ||||
| #define BMO_SLOT_AS_VECTOR(slot) ((slot)->data.vec) | #define BMO_SLOT_AS_VECTOR(slot) ((slot)->data.vec) | ||||
| #define BMO_SLOT_AS_MATRIX(slot ) ((float (*)[4])((slot)->data.p)) | #define BMO_SLOT_AS_MATRIX(slot ) ((float (*)[4])((slot)->data.p)) | ||||
| #define BMO_SLOT_AS_POINTER(slot ) ((slot)->data.p) | |||||
| #define BMO_SLOT_AS_BUFFER(slot ) ((slot)->data.buf) | #define BMO_SLOT_AS_BUFFER(slot ) ((slot)->data.buf) | ||||
| #define BMO_SLOT_AS_GHASH(slot ) ((slot)->data.ghash) | #define BMO_SLOT_AS_GHASH(slot ) ((slot)->data.ghash) | ||||
| #define BMO_ASSERT_SLOT_IN_OP(slot, op) \ | #define BMO_ASSERT_SLOT_IN_OP(slot, op) \ | ||||
| BLI_assert(((slot >= (op)->slots_in) && (slot < &(op)->slots_in[BMO_OP_MAX_SLOTS])) || \ | BLI_assert(((slot >= (op)->slots_in) && (slot < &(op)->slots_in[BMO_OP_MAX_SLOTS])) || \ | ||||
| ((slot >= (op)->slots_out) && (slot < &(op)->slots_out[BMO_OP_MAX_SLOTS]))) | ((slot >= (op)->slots_out) && (slot < &(op)->slots_out[BMO_OP_MAX_SLOTS]))) | ||||
| /* way more than probably needed, compiler complains if limit hit */ | /* way more than probably needed, compiler complains if limit hit */ | ||||
| ▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines | |||||