fix for mirror select and added to the menu
authorCampbell Barton <ideasman42@gmail.com>
Tue, 20 Oct 2009 17:10:01 +0000 (17:10 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 20 Oct 2009 17:10:01 +0000 (17:10 +0000)
release/scripts/ui/space_view3d.py
source/blender/editors/mesh/editmesh_mods.c

index 4e6438e4271aad6325419d78fe6b49fecfe54b02..eae97febf14ffe425e68fb4785ed38adec623d32 100644 (file)
@@ -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")
index 7ca044b80878a11bda459acfb727e6e9f4baffac..02fb166a4e1483d9259f3c832604b20d2720c2ff 100644 (file)
@@ -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;
+                       }
                }
        }
 }