From c128b30bd13bbf48a701fe068fa27c1d21378515 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 7 Jan 2020 22:11:19 +1100 Subject: 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. --- source/blender/editors/mesh/editmesh_path.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/mesh/editmesh_path.c') diff --git a/source/blender/editors/mesh/editmesh_path.c b/source/blender/editors/mesh/editmesh_path.c index 06c41b78c37..e09bcaf4edc 100644 --- a/source/blender/editors/mesh/editmesh_path.c +++ b/source/blender/editors/mesh/editmesh_path.c @@ -270,7 +270,7 @@ static void mouse_mesh_shortest_path_vert(Scene *UNUSED(scene), } } - EDBM_update_generic(em, false, false); + EDBM_update_generic(obedit->data, false, false); } /** \} */ @@ -474,7 +474,7 @@ static void mouse_mesh_shortest_path_edge(Scene *scene, } } - EDBM_update_generic(em, false, false); + EDBM_update_generic(obedit->data, false, false); if (op_params->edge_mode == EDGE_MODE_TAG_SEAM) { ED_uvedit_live_unwrap(scene, &obedit, 1); @@ -591,7 +591,7 @@ static void mouse_mesh_shortest_path_face(Scene *UNUSED(scene), BM_mesh_active_face_set(bm, f_dst_last); } - EDBM_update_generic(em, false, false); + EDBM_update_generic(obedit->data, false, false); } /** \} */ -- cgit v1.2.3