Edit Mesh: pass in Mesh instead of BMEditMesh to EDBM_update_generic

This avoids a list lookup in Main (recently added), passing in a mesh
instead of an edit-mesh, since the mesh links to the edit-mesh.
This commit is contained in:
2020-01-07 22:11:19 +11:00
parent cb1f48ab7f
commit c128b30bd1
24 changed files with 136 additions and 142 deletions

View File

@@ -148,9 +148,9 @@ static PyObject *bpy_bm_update_edit_mesh(PyObject *UNUSED(self), PyObject *args,
{
extern void EDBM_update_generic(
BMEditMesh * em, const bool do_tessface, const bool is_destructive);
struct Mesh * me, const bool do_tessface, const bool is_destructive);
EDBM_update_generic(me->edit_mesh, do_loop_triangles, is_destructive);
EDBM_update_generic(me, do_loop_triangles, is_destructive);
}
Py_RETURN_NONE;