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