Correcting the logic of the hotkey modifiers for select

non-manifold. If you want it so all three modifiers are needed
(e.g. ctrl-alt-shift-MKEY) use:

  if ( !(~G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY)) )

instead of

  if ( G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY) )

(which really allows any modifier, alone or in combination, to work).
This commit is contained in:
Chris Want
2005-01-29 21:34:45 +00:00
parent a238e7b9f4
commit 3180afe2cf

View File

@@ -1354,7 +1354,8 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
else if((G.qual==0) || (G.qual==LR_CTRLKEY)) {
mirrormenu();
}
if(G.qual & (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY)) {
if ( !(~G.qual &
(LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY)) ) {
if(G.obedit->type==OB_MESH) select_non_manifold();
}
}