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.
This commit is contained in:
2021-06-14 22:56:01 +10:00
parent 1d2eb461b5
commit 8083527f90
24 changed files with 689 additions and 148 deletions

View File

@@ -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;