From a93cbb70cd6ac32193ca3b656c47f620ef10a4d2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Jan 2019 14:26:15 +1100 Subject: Fix T60643: BMesh operator enum args fail when unset from Python Error introduced with bmesh operator enum support: 1e6a5eb087911 --- source/blender/python/bmesh/bmesh_py_ops_call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/python/bmesh') diff --git a/source/blender/python/bmesh/bmesh_py_ops_call.c b/source/blender/python/bmesh/bmesh_py_ops_call.c index ac328e852ac..dd90a491192 100644 --- a/source/blender/python/bmesh/bmesh_py_ops_call.c +++ b/source/blender/python/bmesh/bmesh_py_ops_call.c @@ -173,7 +173,7 @@ static int bpy_slot_from_py( { if (slot->slot_subtype.intg == BMO_OP_SLOT_SUBTYPE_INT_ENUM) { int enum_val = -1; - PyC_FlagSet *items = (PyC_FlagSet *)slot->data.enum_flags; + PyC_FlagSet *items = (PyC_FlagSet *)slot->data.enum_data.flags; const char *enum_str = _PyUnicode_AsString(value); if (enum_str == NULL) { @@ -191,7 +191,7 @@ static int bpy_slot_from_py( } else if (slot->slot_subtype.intg == BMO_OP_SLOT_SUBTYPE_INT_FLAG) { int flag = 0; - PyC_FlagSet *items = (PyC_FlagSet *)slot->data.enum_flags; + PyC_FlagSet *items = (PyC_FlagSet *)slot->data.enum_data.flags; if (PyC_FlagSet_ToBitfield(items, value, &flag, slot_name) == -1) { return -1; -- cgit v1.2.3