[Bf-blender-cvs] [3a5c16f1c98] master: Fix T74720: bmesh.ops.delete default context argument does nothing
mano-wii
noreply at git.blender.org
Tue Apr 7 15:25:15 CEST 2020
Commit: 3a5c16f1c981567a800c1094898e892f84d855a0
Author: mano-wii
Date: Tue Apr 7 23:22:28 2020 +1000
Branches: master
https://developer.blender.org/rB3a5c16f1c981567a800c1094898e892f84d855a0
Fix T74720: bmesh.ops.delete default context argument does nothing
===================================================================
M 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 d3c8499477b..6454079a5dc 100644
--- a/source/blender/bmesh/intern/bmesh_operators.c
+++ b/source/blender/bmesh/intern/bmesh_operators.c
@@ -138,6 +138,8 @@ static void bmo_op_slots_init(const BMOSlotType *slot_types, BMOpSlot *slot_args
BMO_OP_SLOT_SUBTYPE_INT_ENUM,
BMO_OP_SLOT_SUBTYPE_INT_FLAG)) {
slot->data.enum_data.flags = slot_types[i].enum_flags;
+ /* Set the first value of the enum as the default value. */
+ slot->data.i = slot->data.enum_data.flags[0].value;
}
default:
break;
More information about the Bf-blender-cvs
mailing list