diff options
author | Ton Roosendaal <ton@blender.org> | 2004-11-26 23:20:42 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-11-26 23:20:42 +0300 |
commit | 230784b824c411b8b7f34fbc422ab3849b40fa14 (patch) | |
tree | f9e6ca7364d084cf02e81514ed54f476fcacbf36 /source/blender/src/editaction.c | |
parent | a34432aa8c351176d66e21ee9047e4c95b8e8941 (diff) |
Bug fix #1893
Option to switch left/right mouse didn't work for floating panels. It then
still selected stuff behind the button.
Was due to using wrong variable for events.
Diffstat (limited to 'source/blender/src/editaction.c')
-rw-r--r-- | source/blender/src/editaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c index 0e2f4038eb4..45f9b850595 100644 --- a/source/blender/src/editaction.c +++ b/source/blender/src/editaction.c @@ -2248,10 +2248,10 @@ void winqreadactionspace(ScrArea *sa, void *spacedata, BWinEvent *evt) /* swap mouse buttons based on user preference */ if (U.flag & USER_LMOUSESELECT) { - if (evt->event == LEFTMOUSE) { + if (event == LEFTMOUSE) { event = RIGHTMOUSE; mousebut = L_MOUSE; - } else if (evt->event == RIGHTMOUSE) { + } else if (event == RIGHTMOUSE) { event = LEFTMOUSE; mousebut = R_MOUSE; } |