previous commit to editface made it impossible to leave faceSelect mode of the object...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 27 Jun 2006 04:30:06 +0000 (04:30 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 27 Jun 2006 04:30:06 +0000 (04:30 +0000)
Now you can leave faceSelect/UV mode while the object is hidden but not enter it. This is how editmode works.
Tweak to crease comparison.

source/blender/src/editface.c
source/blender/src/editmesh_mods.c

index 603d9ae4e74efc3569d178769f3a972f0d7aef84..a906cc275fd99ae7cc33430a8b1d8bf7f5d6f4f3 100644 (file)
@@ -1424,7 +1424,7 @@ void set_faceselect()     /* toggle */
        Object *ob = OBACT;
        Mesh *me = 0;
        
-       if(ob==NULL || (ob->lay & G.vd->lay)==0) return;
+       if(ob==NULL) return;
        if(ob->id.lib) {
                error("Can't edit library data");
                return;
@@ -1451,7 +1451,7 @@ void set_faceselect()     /* toggle */
                        BIF_undo_push("End UV Faceselect");
                }
        }
-       else if (me) {
+       else if (me && (ob->lay & G.vd->lay)) {
                G.f |= G_FACESELECT;
                if(me->tface==NULL)
                        make_tfaces(me);
index b46c3103735ac55e806d9df85accdfa4e2923432..a69e3d3ca6ee78f5e439acad548d14091ad95b9e 100644 (file)
@@ -1042,7 +1042,7 @@ int edgegroup_select(short mode)
                                        if (
                                                !(eed->f & SELECT) &&
                                                !eed->h &&
-                                               (fabs(base_eed->crease-eed->crease) < thresh)
+                                               (fabs(base_eed->crease-eed->crease) <= thresh)
                                        ) {
                                                EM_select_edge(eed, 1);
                                                selcount++;