Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-01-07 14:11:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-07 14:14:36 +0300
commitc128b30bd13bbf48a701fe068fa27c1d21378515 (patch)
treed7cb94213e72d823bfa41f336a67fbaf947efbc7 /source/blender/editors/mesh/editmesh_path.c
parentcb1f48ab7f5024715a898b767576ce4258098516 (diff)
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.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_path.c')
-rw-r--r--source/blender/editors/mesh/editmesh_path.c6
1 files changed, 3 insertions, 3 deletions
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);
}
/** \} */