From 8083527f90d1556f576cf102d4143749677c45e0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 14 Jun 2021 22:56:01 +1000 Subject: Edit Mesh: use params arg for update function, add calc_normals arg Rename function EDBM_update_generic to EDBM_update, use a parameters argument for better readability. Also add calc_normals argument, which will have benefits when calculating normals and tessellation together is optimized. --- source/blender/python/bmesh/bmesh_py_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/python') diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c index 906f8ab702f..9cafb700430 100644 --- a/source/blender/python/bmesh/bmesh_py_api.c +++ b/source/blender/python/bmesh/bmesh_py_api.c @@ -147,10 +147,10 @@ static PyObject *bpy_bm_update_edit_mesh(PyObject *UNUSED(self), PyObject *args, } { - extern void EDBM_update_generic( + extern void EDBM_update_extern( struct Mesh * me, const bool do_tessface, const bool is_destructive); - EDBM_update_generic(me, do_loop_triangles, is_destructive); + EDBM_update_extern(me, do_loop_triangles, is_destructive); } Py_RETURN_NONE; -- cgit v1.2.3