-> Fix for bug in 'Select Non-Manifold'
authorGeoffrey Bantle <hairbat@yahoo.com>
Tue, 13 May 2008 02:22:57 +0000 (02:22 +0000)
committerGeoffrey Bantle <hairbat@yahoo.com>
Tue, 13 May 2008 02:22:57 +0000 (02:22 +0000)
Select non-manifold would select stray vertices even when in
non-vertex modes. Fixed.

source/blender/src/editmesh_mods.c

index 81d79de08c5cdd96b913ae9c94b1efaef9e4fbf0..15a678e0eccc6f4dfeaf1545b41b9543599abc84 100644 (file)
@@ -3187,12 +3187,14 @@ void select_non_manifold(void)
        }
 
        /* select isolated verts */
-       eve= em->verts.first;
-       while(eve) {
-               if (eve->f1 == 0) {
-                       if (!eve->h) eve->f |= SELECT;
+       if(G.scene->selectmode & SCE_SELECT_VERTEX) {
+               eve= em->verts.first;
+               while(eve) {
+                       if (eve->f1 == 0) {
+                               if (!eve->h) eve->f |= SELECT;
+                       }
+                       eve= eve->next;
                }
-               eve= eve->next;
        }
 
        countall();