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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user