From a2d4c26aa2e518313784b477b8b7c4ff819b521e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 14 Jun 2015 06:24:36 +1000 Subject: BMesh: use define for string --- source/blender/python/bmesh/bmesh_py_types.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/python/bmesh') diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index 14fdada66bb..f63381d7a7d 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -79,6 +79,8 @@ PyC_FlagSet bpy_bm_htype_all_flags[] = { {0, NULL} }; +#define BPY_BM_HFLAG_ALL_STR "('SELECT', 'HIDE', 'SEAM', 'SMOOTH', 'TAG')" + PyC_FlagSet bpy_bm_hflag_all_flags[] = { {BM_ELEM_SELECT, "SELECT"}, {BM_ELEM_HIDDEN, "HIDE"}, @@ -1128,7 +1130,7 @@ PyDoc_STRVAR(bpy_bmesh_transform_doc, "\n" " :arg matrix: transform matrix.\n" " :type matrix: 4x4 :class:`mathutils.Matrix`\n" -" :arg filter: set of values in ('SELECT', 'HIDE', 'SEAM', 'SMOOTH', 'TAG').\n" +" :arg filter: set of values in " BPY_BM_HFLAG_ALL_STR ".\n" " :type filter: set\n" ); static PyObject *bpy_bmesh_transform(BPy_BMElem *self, PyObject *args, PyObject *kw) -- cgit v1.2.3