From 6e2d9ef2db3776cf5f6f8a8f685da0aa668f9ae6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 14 Dec 2018 10:54:11 +1100 Subject: Cleanup: naming (mean -> median) see T47811 --- source/blender/python/bmesh/bmesh_py_types.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (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 9cd8eeb0aab..21239f7494a 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -1877,7 +1877,7 @@ static PyObject *bpy_bmface_calc_tangent_vert_diagonal(BPy_BMFace *self) } -PyDoc_STRVAR(bpy_bmface_calc_center_mean_doc, +PyDoc_STRVAR(bpy_bmface_calc_center_median_doc, ".. method:: calc_center_median()\n" "\n" " Return median center of the face.\n" @@ -1890,11 +1890,11 @@ static PyObject *bpy_bmface_calc_center_mean(BPy_BMFace *self) float cent[3]; BPY_BM_CHECK_OBJ(self); - BM_face_calc_center_mean(self->f, cent); + BM_face_calc_center_median(self->f, cent); return Vector_CreatePyObject(cent, 3, NULL); } -PyDoc_STRVAR(bpy_bmface_calc_center_mean_weighted_doc, +PyDoc_STRVAR(bpy_bmface_calc_center_median_weighted_doc, ".. method:: calc_center_median_weighted()\n" "\n" " Return median center of the face weighted by edge lengths.\n" @@ -1902,12 +1902,12 @@ PyDoc_STRVAR(bpy_bmface_calc_center_mean_weighted_doc, " :return: a 3D vector.\n" " :rtype: :class:`mathutils.Vector`\n" ); -static PyObject *bpy_bmface_calc_center_mean_weighted(BPy_BMFace *self) +static PyObject *bpy_bmface_calc_center_median_weighted(BPy_BMFace *self) { float cent[3]; BPY_BM_CHECK_OBJ(self); - BM_face_calc_center_mean_weighted(self->f, cent); + BM_face_calc_center_median_weighted(self->f, cent); return Vector_CreatePyObject(cent, 3, NULL); } @@ -2781,8 +2781,8 @@ static struct PyMethodDef bpy_bmface_methods[] = { {"calc_tangent_edge_pair", (PyCFunction)bpy_bmface_calc_tangent_edge_pair, METH_NOARGS, bpy_bmface_calc_tangent_edge_pair_doc}, {"calc_tangent_edge_diagonal", (PyCFunction)bpy_bmface_calc_tangent_edge_diagonal, METH_NOARGS, bpy_bmface_calc_tangent_edge_diagonal_doc}, {"calc_tangent_vert_diagonal", (PyCFunction)bpy_bmface_calc_tangent_vert_diagonal, METH_NOARGS, bpy_bmface_calc_tangent_vert_diagonal_doc}, - {"calc_center_median", (PyCFunction)bpy_bmface_calc_center_mean, METH_NOARGS, bpy_bmface_calc_center_mean_doc}, - {"calc_center_median_weighted", (PyCFunction)bpy_bmface_calc_center_mean_weighted, METH_NOARGS, bpy_bmface_calc_center_mean_weighted_doc}, + {"calc_center_median", (PyCFunction)bpy_bmface_calc_center_mean, METH_NOARGS, bpy_bmface_calc_center_median_doc}, + {"calc_center_median_weighted", (PyCFunction)bpy_bmface_calc_center_median_weighted, METH_NOARGS, bpy_bmface_calc_center_median_weighted_doc}, {"calc_center_bounds", (PyCFunction)bpy_bmface_calc_center_bounds, METH_NOARGS, bpy_bmface_calc_center_bounds_doc}, {"normal_update", (PyCFunction)bpy_bmface_normal_update, METH_NOARGS, bpy_bmface_normal_update_doc}, -- cgit v1.2.3