previous commit to editface made it impossible to leave faceSelect mode of the object was in an unseen layer.

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.
This commit is contained in:
Campbell Barton
2006-06-27 04:30:06 +00:00
parent 0a8ac15e67
commit e0aa1dd295
2 changed files with 3 additions and 3 deletions

View 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);

View 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++;