fix for mirror select and added to the menu

This commit is contained in:
Campbell Barton 2009-10-20 17:10:01 +00:00
parent 25e9be0002
commit 49a937c521
2 changed files with 6 additions and 2 deletions

@ -256,6 +256,8 @@ class VIEW3D_MT_select_edit_mesh(bpy.types.Menu):
layout.itemO("mesh.select_more", text="More")
layout.itemS()
layout.itemO("mesh.select_mirror", text="Mirror")
layout.itemO("mesh.select_linked", text="Linked")
layout.itemO("mesh.select_vertex_path", text="Vertex Path")

@ -111,8 +111,10 @@ void EM_cache_x_mirror_vert(struct Object *ob, struct EditMesh *em)
for(eve= em->verts.first; eve; eve= eve->next) {
if(eve->tmp.v==NULL) {
eve_mirror = editmesh_get_x_mirror_vert(ob, em, eve->co);
eve->tmp.v= eve_mirror;
eve_mirror->tmp.v = eve;
if(eve_mirror) {
eve->tmp.v= eve_mirror;
eve_mirror->tmp.v = eve;
}
}
}
}