Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2005-01-30 00:34:45 +0300
committerChris Want <cwant@ualberta.ca>2005-01-30 00:34:45 +0300
commit3180afe2cffd05f8cae26744c41a638b3168d51b (patch)
tree6eb5fd62e05ca89644d55a9b0e4c05418188deaa /source/blender/src/space.c
parenta238e7b9f4639e8e9115acfec1fd86c88cbbd4b0 (diff)
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).
Diffstat (limited to 'source/blender/src/space.c')
-rw-r--r--source/blender/src/space.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index 6663b4b63df..3f69d10a5b1 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -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();
}
}