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:
authorTon Roosendaal <ton@blender.org>2004-11-26 23:20:42 +0300
committerTon Roosendaal <ton@blender.org>2004-11-26 23:20:42 +0300
commit230784b824c411b8b7f34fbc422ab3849b40fa14 (patch)
treef9e6ca7364d084cf02e81514ed54f476fcacbf36 /source/blender/src/editsound.c
parenta34432aa8c351176d66e21ee9047e4c95b8e8941 (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/editsound.c')
-rw-r--r--source/blender/src/editsound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editsound.c b/source/blender/src/editsound.c
index 6b821772de8..5093a6f57a1 100644
--- a/source/blender/src/editsound.c
+++ b/source/blender/src/editsound.c
@@ -119,10 +119,10 @@ void winqreadsoundspace(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;
}