Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_operators.c
| Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | for (i = 0; slot_types[i].type; i++) { | ||||
| slot->slot_type = slot_types[i].type; | slot->slot_type = slot_types[i].type; | ||||
| slot->slot_subtype = slot_types[i].subtype; | slot->slot_subtype = slot_types[i].subtype; | ||||
| // slot->index = i; // UNUSED | // slot->index = i; // UNUSED | ||||
| switch (slot->slot_type) { | switch (slot->slot_type) { | ||||
| case BMO_OP_SLOT_MAPPING: | case BMO_OP_SLOT_MAPPING: | ||||
| slot->data.ghash = BLI_ghash_ptr_new("bmesh slot map hash"); | slot->data.ghash = BLI_ghash_ptr_new("bmesh slot map hash"); | ||||
| break; | break; | ||||
| case BMO_OP_SLOT_INT: | |||||
| if (ELEM(slot->slot_subtype.intg, BMO_OP_SLOT_SUBTYPE_INT_ENUM, BMO_OP_SLOT_SUBTYPE_INT_FLAG)) { | |||||
| slot->data.enum_flags = slot_types[i].enum_flags; | |||||
campbellbarton: can use `ELEM(slot->slot_subtype.intg, BMO_OP_SLOT_SUBTYPE_INT_ENUM… | |||||
| } | |||||
| default: | default: | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void bmo_op_slots_free(const BMOSlotType *slot_types, BMOpSlot *slot_args) | static void bmo_op_slots_free(const BMOSlotType *slot_types, BMOpSlot *slot_args) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,786 Lines • Show Last 20 Lines | |||||
can use ELEM(slot->slot_subtype.intg, BMO_OP_SLOT_SUBTYPE_INT_ENUM, BMO_OP_SLOT_SUBTYPE_INT_FLAG) here.