diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-11 17:19:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-11 17:19:05 +0300 |
commit | 114ce86167b0000428304c5675719cfff3a771d7 (patch) | |
tree | a84c3ab3b5a0d451fea25ff33d1649e3b5b35e7d /source/blender/src/editlattice.c | |
parent | 910ef6ca754579d7f605603ab1d737c89f8579c3 (diff) |
display real fps in 3d view option
replace 1 with SELECT
edited DVar texture tooltip
Diffstat (limited to 'source/blender/src/editlattice.c')
-rw-r--r-- | source/blender/src/editlattice.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/src/editlattice.c b/source/blender/src/editlattice.c index 9aa363a654f..f3073cf886a 100644 --- a/source/blender/src/editlattice.c +++ b/source/blender/src/editlattice.c @@ -240,7 +240,7 @@ static void findnearestLattvert__doClosest(void *userData, BPoint *bp, int x, in struct { BPoint *bp; short dist, select, mval[2]; } *data = userData; float temp = abs(data->mval[0]-x) + abs(data->mval[1]-y); - if ((bp->f1&1)==data->select) temp += 5; + if ((bp->f1 & SELECT)==data->select) temp += 5; if (temp<data->dist) { data->dist = temp; @@ -274,17 +274,13 @@ void mouse_lattice(void) if((G.qual & LR_SHIFTKEY)==0) { setflagsLatt(0); - bp->f1 |= 1; + bp->f1 |= SELECT; allqueue(REDRAWVIEW3D, 0); } else { - - if(bp->f1 & 1) bp->f1 &= ~1; - else bp->f1 |= 1; - + bp->f1 ^= SELECT; /* swap */ allqueue(REDRAWVIEW3D, 0); - } countall(); |