From 1e6a5eb0879119808fde8f002eed5ac7909944ec Mon Sep 17 00:00:00 2001 From: Andrew Hale Date: Mon, 27 Aug 2018 15:51:27 +0200 Subject: Implement BMesh Operator string enumerators and docs generation. Partial implementation of T56496 for review. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3635 --- source/blender/bmesh/intern/bmesh_operators.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/bmesh/intern/bmesh_operators.c') diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c index 62d892712fd..a8e1b1c3088 100644 --- a/source/blender/bmesh/intern/bmesh_operators.c +++ b/source/blender/bmesh/intern/bmesh_operators.c @@ -140,6 +140,10 @@ static void bmo_op_slots_init(const BMOSlotType *slot_types, BMOpSlot *slot_args case BMO_OP_SLOT_MAPPING: slot->data.ghash = BLI_ghash_ptr_new("bmesh slot map hash"); 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; + } default: break; } -- cgit v1.2.3