[Bf-blender-cvs] [2662ba24380] blender-v2.82-release: Fix T59804: Expose hidden bmesh.ops.symmetrize options in python
mano-wii
noreply at git.blender.org
Mon Jan 27 16:59:29 CET 2020
Commit: 2662ba24380471be0972fcaa545995c1514dbc24
Author: mano-wii
Date: Mon Jan 27 12:59:11 2020 -0300
Branches: blender-v2.82-release
https://developer.blender.org/rB2662ba24380471be0972fcaa545995c1514dbc24
Fix T59804: Expose hidden bmesh.ops.symmetrize options in python
The operator actually supports a 6-item enum
Differential Revision: https://developer.blender.org/D6613
===================================================================
M source/blender/bmesh/intern/bmesh_opdefines.c
===================================================================
diff --git a/source/blender/bmesh/intern/bmesh_opdefines.c b/source/blender/bmesh/intern/bmesh_opdefines.c
index 74d01dca66a..4fa7bf64834 100644
--- a/source/blender/bmesh/intern/bmesh_opdefines.c
+++ b/source/blender/bmesh/intern/bmesh_opdefines.c
@@ -102,6 +102,16 @@ static BMO_FlagSet bmo_enum_axis_xyz[] = {
{0, NULL},
};
+static BMO_FlagSet bmo_enum_axis_neg_xyz_and_xyz[] = {
+ {0, "-X"},
+ {1, "-Y"},
+ {2, "-Z"},
+ {3, "X"},
+ {4, "Y"},
+ {5, "Z"},
+ {0, NULL},
+};
+
static BMO_FlagSet bmo_enum_falloff_type[] = {
{SUBD_FALLOFF_SMOOTH, "SMOOTH"},
{SUBD_FALLOFF_SPHERE, "SPHERE"},
@@ -2046,7 +2056,7 @@ static BMOpDefine bmo_symmetrize_def = {
"symmetrize",
/* slots_in */
{{"input", BMO_OP_SLOT_ELEMENT_BUF, {BM_VERT | BM_EDGE | BM_FACE}},
- {"direction", BMO_OP_SLOT_INT, {(int)BMO_OP_SLOT_SUBTYPE_INT_ENUM}, bmo_enum_axis_xyz}, /* axis to use */
+ {"direction", BMO_OP_SLOT_INT, {(int)BMO_OP_SLOT_SUBTYPE_INT_ENUM}, bmo_enum_axis_neg_xyz_and_xyz}, /* axis to use */
{"dist", BMO_OP_SLOT_FLT}, /* minimum distance */
{{'\0'}},
},
More information about the Bf-blender-cvs
mailing list